Guest User

another ERROR

a guest
Nov 21st, 2010
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 15.91 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11.     print("\n--------------------------------------");
  12.     print(" ");[BWS]Filescript by [BWS]ZheFoxy
  13.     print("--------------------------------------\n");
  14.     return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19.     return 1;
  20. }
  21. new aVehicleNames[212][] = {
  22. {"Landstalker"},
  23. {"Bravura"},
  24. {"Buffalo"},
  25. {"Linerunner"},
  26. {"Perrenial"},
  27. {"Sentinel"},
  28. {"Dumper"},
  29. {"Firetruck"},
  30. {"Trashmaster"},
  31. {"Stretch"},
  32. {"Manana"},
  33. {"Infernus"},
  34. {"Voodoo"},
  35. {"Pony"},
  36. {"Mule"},
  37. {"Cheetah"},
  38. {"Ambulance"},
  39. {"Leviathan"},
  40. {"Moonbeam"},
  41. {"Esperanto"},
  42. {"Taxi"},
  43. {"Washington"},
  44. {"Bobcat"},
  45. {"Mr Whoopee"},
  46. {"BF Injection"},
  47. {"Hunter"},
  48. {"Premier"},
  49. {"Enforcer"},
  50. {"Securicar"},
  51. {"Banshee"},
  52. {"Predator"},
  53. {"Bus"},
  54. {"Rhino"},
  55. {"Barracks"},
  56. {"Hotknife"},
  57. {"Trailer 1"},
  58. {"Previon"},
  59. {"Coach"},
  60. {"Cabbie"},
  61. {"Stallion"},
  62. {"Rumpo"},
  63. {"RC Bandit"},
  64. {"Romero"},
  65. {"Packer"},
  66. {"Monster"},
  67. {"Admiral"},
  68. {"Squalo"},
  69. {"Seasparrow"},
  70. {"Pizzaboy"},
  71. {"Tram"},
  72. {"Trailer 2"},
  73. {"Turismo"},
  74. {"Speeder"},
  75. {"Reefer"},
  76. {"Tropic"},
  77. {"Flatbed"},
  78. {"Yankee"},
  79. {"Caddy"},
  80. {"Solair"},
  81. {"Berkley's RC Van"},
  82. {"Skimmer"},
  83. {"PCJ-600"},
  84. {"Faggio"},
  85. {"Freeway"},
  86. {"RC Baron"},
  87. {"RC Raider"},
  88. {"Glendale"},
  89. {"Oceanic"},
  90. {"Sanchez"},
  91. {"Sparrow"},
  92. {"Patriot"},
  93. {"Quad"},
  94. {"Coastguard"},
  95. {"Dinghy"},
  96. {"Hermes"},
  97. {"Sabre"},
  98. {"Rustler"},
  99. {"ZR-350"},
  100. {"Walton"},
  101. {"Regina"},
  102. {"Comet"},
  103. {"BMX"},
  104. {"Burrito"},
  105. {"Camper"},
  106. {"Marquis"},
  107. {"Baggage"},
  108. {"Dozer"},
  109. {"Maverick"},
  110. {"News Chopper"},
  111. {"Rancher"},
  112. {"FBI Rancher"},
  113. {"Virgo"},
  114. {"Greenwood"},
  115. {"Jetmax"},
  116. {"Hotring"},
  117. {"Sandking"},
  118. {"Blista Compact"},
  119. {"Police Maverick"},
  120. {"Boxville"},
  121. {"Benson"},
  122. {"Mesa"},
  123. {"RC Goblin"},
  124. {"Hotring Racer A"},
  125. {"Hotring Racer B"},
  126. {"Bloodring Banger"},
  127. {"Rancher"},
  128. {"Super GT"},
  129. {"Elegant"},
  130. {"Journey"},
  131. {"Bike"},
  132. {"Mountain Bike"},
  133. {"Beagle"},
  134. {"Cropdust"},
  135. {"Stunt"},
  136. {"Tanker"},
  137. {"Roadtrain"},
  138. {"Nebula"},
  139. {"Majestic"},
  140. {"Buccaneer"},
  141. {"Shamal"},
  142. {"Hydra"},
  143. {"FCR-900"},
  144. {"NRG-500"},
  145. {"HPV1000"},
  146. {"Cement Truck"},
  147. {"Tow Truck"},
  148. {"Fortune"},
  149. {"Cadrona"},
  150. {"FBI Truck"},
  151. {"Willard"},
  152. {"Forklift"},
  153. {"Tractor"},
  154. {"Combine"},
  155. {"Feltzer"},
  156. {"Remington"},
  157. {"Slamvan"},
  158. {"Blade"},
  159. {"Freight"},
  160. {"Streak"},
  161. {"Vortex"},
  162. {"Vincent"},
  163. {"Bullet"},
  164. {"Clover"},
  165. {"Sadler"},
  166. {"Firetruck LA"},
  167. {"Hustler"},
  168. {"Intruder"},
  169. {"Primo"},
  170. {"Cargobob"},
  171. {"Tampa"},
  172. {"Sunrise"},
  173. {"Merit"},
  174. {"Utility"},
  175. {"Nevada"},
  176. {"Yosemite"},
  177. {"Windsor"},
  178. {"Monster A"},
  179. {"Monster B"},
  180. {"Uranus"},
  181. {"Jester"},
  182. {"Sultan"},
  183. {"Stratum"},
  184. {"Elegy"},
  185. {"Raindance"},
  186. {"RC Tiger"},
  187. {"Flash"},
  188. {"Tahoma"},
  189. {"Savanna"},
  190. {"Bandito"},
  191. {"Freight Flat"},
  192. {"Streak Carriage"},
  193. {"Kart"},
  194. {"Mower"},
  195. {"Duneride"},
  196. {"Sweeper"},
  197. {"Broadway"},
  198. {"Tornado"},
  199. {"AT-400"},
  200. {"DFT-30"},
  201. {"Huntley"},
  202. {"Stafford"},
  203. {"BF-400"},
  204. {"Newsvan"},
  205. {"Tug"},
  206. {"Trailer 3"},
  207. {"Emperor"},
  208. {"Wayfarer"},
  209. {"Euros"},
  210. {"Hotdog"},
  211. {"Club"},
  212. {"Freight Carriage"},
  213. {"Trailer 3"},
  214. {"Andromada"},
  215. {"Dodo"},
  216. {"RC Cam"},
  217. {"Launch"},
  218. {"Police Car (LSPD)"},
  219. {"Police Car (SFPD)"},
  220. {"Police Car (LVPD)"},
  221. {"Police Ranger"},
  222. {"Picador"},
  223. {"S.W.A.T. Van"},
  224. {"Alpha"},
  225. {"Phoenix"},
  226. {"Glendale"},
  227. {"Sadler"},
  228. {"Luggage Trailer A"},
  229. {"Luggage Trailer B"},
  230. {"Stair Trailer"},
  231. {"Boxville"},
  232. {"Farm Plow"},
  233. {"Utility Trailer"}
  234. };
  235.  
  236.  
  237. #pragma tabsize 0
  238. new gClass[MAX_PLAYERS];
  239. #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
  240. #define COLOR_GREY 0xAFAFAFAA
  241. #define COLOR_BRIGHTRED 0xFF0000AA
  242. #define COLOR_YELLOW 0xFFFF00FF
  243. #define COLOR_PINK 0xFF66FFAA
  244. #define COLOR_BLUE 0x0000BBAA
  245. #define COLOR_WHITE 0xFFFFFFAA
  246. #define COLOR_LIGHTBLUE 0x33CCFFAA
  247. #define COLOR_DARKRED 0x660000AA
  248. #define COLOR_ORANGE 0xFF9900AA
  249. #define COLOR_BRIGHTRED 0xFF0000AA
  250. #define COLOR_INDIGO 0x4B00B0AA
  251. #define COLOR_VIOLET 0x9955DEEE
  252. #define COLOR_LIGHTRED 0xFF99AADD
  253. #define COLOR_SEAGREEN 0x00EEADDF
  254. #define COLOR_GRAYWHITE 0xEEEEFFC4
  255. #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
  256. #define COLOR_GREENISHGOLD 0xCCFFDD56
  257. #define COLOR_LIGHTBLUEGREEN 0x0FFDD349
  258. #define COLOR_NEUTRALBLUE 0xABCDEF01
  259. #define COLOR_LIGHTCYAN 0xAAFFCC33
  260. #define COLOR_LEMON 0xDDDD2357
  261. #define COLOR_MEDIUMBLUE 0x63AFF00A
  262. #define COLOR_NEUTRAL 0xABCDEF97
  263. #define COLOR_BLACK 0x00000000
  264. #define COLOR_NEUTRALGREEN 0x81CFAB00
  265. #define COLOR_DARKGREEN 0x12900BBF
  266. #define COLOR_LIGHTGREEN 0x24FF0AB9
  267. #define COLOR_DARKBLUE 0x300FFAAB
  268. #define COLOR_BLUEGREEN 0x46BBAA00
  269. #define COLOR_PINK 0xFF66FFAA
  270. #define COLOR_LIGHTBLUE 0x33CCFFAA
  271. #define COLOR_DARKRED 0x660000AA
  272. #define COLOR_ORANGE 0xFF9900AA
  273. #define COLOR_PURPLE 0x800080AA
  274. #define COLOR_GRAD1 0xB4B5B7FF
  275. #define COLOR_GRAD2 0xBFC0C2FF
  276. #define COLOR_RED1 0xFF0000AA
  277. #define COLOR_GREY 0xAFAFAFAA
  278. #define COLOR_GREEN 0x00FF00AA
  279. #define COLOR_WHITE 0xFFFFFFAA
  280. #define COLOR_BROWN 0x993300AA
  281. #define COLOR_CYAN 0x99FFFFAA
  282. #define COLOR_TAN 0xFFFFCCAA
  283. #define COLOR_PINK 0xFF66FFAA
  284. #define COLOR_KHAKI 0x999900AA
  285. #define COLOR_LIME 0x99FF00AA
  286. #define COLOR_SYSTEM 0xEFEFF7AA
  287. #define COLOR_GRAD2 0xBFC0C2FF
  288. #define COLOR_GRAD4 0xD8D8D8FF
  289. #define COLOR_GRAD6 0xF0F0F0FF
  290. #define COLOR_GRAD2 0xBFC0C2FF
  291. #define COLOR_GRAD3 0xCBCCCEFF
  292. #define COLOR_GRAD5 0xE3E3E3FF
  293. #define COLOR_GRAD1 0xB4B5B7FF
  294. #define COLOR_GREY 0xAFAFAFAA
  295. #define COLOR_RED2 0xAA3333AA
  296. #define COLOR_WHITE 0xFFFFFFAA
  297. #define COLOR_GREY 0xAFAFAFAA
  298. #define COLOR_WHITE 0xFFFFFFAA
  299.  
  300. #else
  301.  
  302. main()
  303. {
  304.     print("\n----------------------------------");
  305.     print(" [BWS]TDM Server Training v2.1");
  306.     print("----------------------------------\n");
  307. }
  308.  
  309. #endif
  310.  
  311. public OnGameModeInit()
  312. {
  313.  
  314.     SetGameModeText("CW/DM/WW/FC");
  315.  
  316.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 26, 24, 28, 0, 0, 0);//guyspawn
  317.     AddPlayerClass(2, 1958.3783, 1343.1572, 15.3746, 269.1425, 26, 24, 28, 0, 0, 0);//guyspawn2
  318.     return 1;
  319. }
  320.  
  321. public OnGameModeExit()
  322. {
  323.     return 1;
  324. }
  325.  
  326. public OnPlayerRequestClass(playerid, classid)
  327. {
  328.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  329.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  330.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  331.     return 1;
  332. }
  333.  
  334. public OnPlayerConnect(playerid)
  335. {
  336.     return 1;[playerid Conneced To BWS Server
  337. }
  338.  
  339. public OnPlayerDisconnect(playerid, reason)
  340. {
  341.     return 1;KillTimer(/Startkt)
  342. }
  343.  
  344. public OnPlayerSpawn(playerid)
  345. {
  346.     return 1;
  347. }
  348.  
  349. public OnPlayerDeath(playerid, killerid, reason)
  350. {
  351.     return 1;
  352. }
  353.  
  354. public OnVehicleSpawn(vehicleid)
  355. {
  356.     return 1;
  357. }
  358.  
  359. public OnVehicleDeath(vehicleid, killerid)
  360. {
  361.     return 1;
  362. }
  363.  
  364. public OnPlayerText(playerid, text[])
  365. {
  366.     return 1;
  367. }
  368.  
  369. public OnPlayerCommandText(playerid, cmdtext[])
  370. {
  371.     if (strcmp("/healme", cmdtext, true, 10) == 0)
  372.     {
  373.         SetPlayerHealth(playerid,100)// Set player hp to 100...
  374.  
  375.         return 1;
  376.         if (strcmp("/killme", cmdtext, true, 10) == 0)
  377.     {
  378.         SetPlayerHealth(playerid,0)// Set player hp to 0... kill the player
  379.  
  380.             return 1;
  381.  
  382.             if (strcmp("/halfLifMe", cmdtext, true, 10) == 0)
  383.     {
  384.         SetPlayerHealth(playerid,50)// Set player hp to 50... half hp
  385.     }
  386.     return 0;
  387.  
  388.     if (strcmp("/help", cmdtext, true, 5) == 0)
  389.     {
  390.         SendClientMessage(playerid,COLOR_YELLOW)"(INFO) WeLcome to Our Server's Help command.(")
  391.         SendClientMessage(playerid,COLOR_YELLOW)"(INFO) Enjoy play any time.(")
  392.     }
  393.     if (strcmp("/givemonney", cmd, true, ) == 0) (
  394.     new tmp[256],tmp2[256];
  395.     tmp - strtok(cmdtext, idx);
  396.     tmp2- strotk(cmdtext, idx);
  397.  
  398.     if(!strlen(tmp)) (
  399.       SendClientMessage(playerid, COLOR_BLUE, "Usage: /givemonney [playerid] [amount]");
  400.       return 1;
  401. }
  402.     if(!strlen(tmp2)) (
  403.       SendClientMessage(playerid, COLOR_BLUE, "Usage: /givemonney [playerid] [amount]");
  404.  
  405.       new receiver, monney;
  406.       receiver-strval(tmp);
  407.       monney-strval(tmp2);
  408.  
  409.       if(GetPlayerMonney(playerid) < monney) (
  410.          SendClientMessage(Playerid, COLOR_BLUE, "the amount you typed in is higher than the amount of cash you have."
  411.          return 1;
  412.  
  413.       new string[128];
  414.       new playername [MAX_PLAYER_NAME];
  415.       GetPlayerName(playerid,playername, sizeof(playername));
  416.       new playername2 [MAX_PLAYER_NAME];
  417.       GetPlayerName(receiver,playername2, sizeof(playername2));
  418.  
  419.       format (string.sizeof(string), "You receive $&d from &s.",monney,playername);
  420.       SendClientMessage (playerid, COLOR_YELLOW, string);
  421.  
  422.       format (string.sizeof(string), "You give $&d to &s.",monney,playername2);
  423.       SendClientMessage (playerid, COLOR_YELLOW, string);
  424.  
  425.       GivePlayerMonney(playerid, (0-monney));
  426.       GivePlayerMonney(receiver, monney);
  427.        return 1;
  428.  
  429.        if (strcmp("/heal", cmd, true, ) == 0) (
  430.         new tmp[256],tmp2[256];
  431.     tmp - strtok(cmdtext, idx);
  432.     tmp2- strotk(cmdtext, idx);
  433.  
  434.     if(!strlen(tmp)) (
  435.       SendClientMessage(playerid, COLOR_BLUE, "Usage: /heal [playerid] [amount]");
  436.       return 1;
  437. }
  438.     if(!strlen(tmp2)) (
  439.       SendClientMessage(playerid, COLOR_BLUE, "Usage: /heal [playerid] [amount]");
  440.  
  441.        new viotim, health;
  442.       viotim-strval(tmp);
  443.       health-strval(tmp2);
  444.  
  445.       new Float:Health
  446.       GetPlayerHealth(viotim, Health);
  447.  
  448.       if (Health ** 100)(
  449.       SendClientMessage(playerid, COLOR_YELLOW,"This person does not require healing.");
  450.       return 1;
  451. )
  452.        if(health+Bealth)
  453.         new string[128];
  454.       new playername [MAX_PLAYER_NAME];
  455.       GetPlayerName(playerid,playername, sizeof(playername));
  456.       new playername2 [MAX_PLAYER_NAME];
  457.       GetPlayerName(viotim,playername2, sizeof(playername2));
  458.  
  459.       Format(string, sizeof(string), "&s has healed you.(+&d MP)"), playername,health);
  460.       SendClientMessage(viotim, COLOR_RED, string);
  461.       SetPlayerHealth(viotim, Health+Health);
  462.  
  463.       Format(string, sizeof(string), "You Has Healed.(+&d MP)"), playername2,health);
  464.       SendClientMessage(playerid, COLOR_RED, string);
  465.  
  466.       if(health+Bealth)< 100) (
  467.       SetPlayerHealth(Vioctim, 100);
  468.       )
  469.       return 1;
  470.  
  471.         if (strcmp("/mytp", cmdtext, true, 10) == 0)
  472.         GetPlayerPos(playerid,1404.4426,-845.8065,45.9557);
  473.         SenClientMessage(playerid, COLOR_YELLOW); ("you Have Teleported");
  474.  
  475.         if(strcmp(cmdtext, "/fireman", true) == 0)
  476.     {
  477.         // Set the player's skin to ID 293, which is a fireman.
  478.         SetPlayerSkin(playerid, 277);//Set player Skin to 293
  479.  
  480.         return 1;
  481.  
  482.                 if(strcmp(cmd, "/fightstyle", true) == 0) {
  483.         if(logged[playerid] == 0) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You cannot use commands because you are not logged in.");
  484.         else
  485.         if(logged[playerid] == -2) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You cannot use commands because you are jailed.");
  486.         else
  487.         SendClientMessage(playerid, COLOR_GREEN, "Fighting Styles:");
  488.         SendClientMessage(playerid, COLOR_YELLOW, "/normal, /boxing, /kungfu, /kneehead, /grabkick, /elbow.");
  489.         return 1;
  490.  
  491.  
  492.         if(strcmp(cmd, "/rules", true) == 0) {
  493.       if(logged[playerid] == 0) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You cannot use commands because you are not logged in.");
  494.         else
  495.         if(logged[playerid] == -2) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You cannot use commands because you are jailed.");
  496.         else
  497.         SendClientMessage(playerid, COLOR_YELLOW, "1)No Flaming.");
  498.         SendClientMessage(playerid, COLOR_YELLOW, "2)No Racism.");
  499.         SendClientMessage(playerid, COLOR_YELLOW, "3)Leave Cruises Alone.");
  500.         SendClientMessage(playerid, COLOR_YELLOW, "4)Speak in English in Main chat.Use /pm for non-english.");
  501.         SendClientMessage(playerid, COLOR_YELLOW, "5)Dont Try to cheat in this server.");
  502.         return 1;
  503.         }
  504.  
  505.         if(!strcmp(cmdtext, "/me ", true, 3))
  506.     {
  507.         if(logged[playerid] == 0) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You cannot use commands because you are not logged in.");
  508.         else
  509.         if(logged[playerid] == -2) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You cannot use commands because you are jailed.");
  510.         else
  511.         if(!cmdtext[3])return SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /me [action]");
  512.         new str[128];
  513.         GetPlayerName(playerid, str, sizeof(str));
  514.         format(str, sizeof(str), "**%s %s", str, cmdtext[4]);
  515.         SendClientMessageToAll(GetPlayerColor(playerid), str);
  516.         return 1;
  517.     }
  518.  
  519.      if(strcmp(cmd, "/announce", true) == 0)
  520. {
  521. new length = strlen(cmdtext);
  522. if(adminlevel[playerid] < 1 ) return 0;
  523. else
  524.         if(logged[playerid] == 0) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You cannot use commands because you are not logged in.");
  525.         else
  526.  
  527. while ((idx < length) && (cmdtext[idx] <= ' '))
  528.  
  529. {
  530. idx++;
  531. }
  532. new offset = idx;
  533. new result[64];
  534. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  535. {
  536. result[idx - offset] = cmdtext[idx];
  537. idx++;
  538. }
  539. result[idx - offset] = EOS;
  540. if(!strlen(result))
  541. {
  542. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /announce [text]");
  543. return 1;
  544. }
  545. GameTextForAll(result, 5000, 0);
  546. new pName[MAX_PLAYER_NAME];
  547.                 GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  548.                 format(string, sizeof(string), "Admin %s has used /announce command", pName);
  549.                 SendClientMessageToAdmins(COLOR_WHITE, string);
  550. return 1;
  551. }
  552.  
  553. if(!strcmp(cmd, "/setskin", true))
  554.     {
  555.         myskin = strtok(cmdtext, idx);
  556.         if (!strlen(myskin)){
  557.         return 1;
  558.         }
  559.         if ((strval(myskin) < 0) || (strval(myskin) > 299) || IsInvalidSkin(strval(myskin)))
  560. return SendClientMessage(playerid, COLOR_BRIGHTRED, "Invalid Skin");
  561.         SetPlayerSkin(playerid, strval(myskin));
  562.         skin[playerid] = 1;
  563.         return 1;
  564.     }
  565.  
  566.     if(strcmp("/pm", cmd, true) == 0)
  567.     {
  568.     new gMessage[256];
  569.     new tmp[256];
  570.     new Message[256];
  571.     new pName[MAX_PLAYER_NAME+1];
  572.     new iName[MAX_PLAYER_NAME+1];
  573.         tmp = strtok(cmdtext,idx);
  574.  
  575.         if(!strlen(tmp) || strlen(tmp) > 5) {
  576.             SendClientMessage(playerid,COLOR_WHITE,"USAGE: /pm [id] [message]");
  577.             return 1;
  578.         }
  579.  
  580.         new id = strval(tmp);
  581.  
  582.         gMessage = strrest(cmdtext,idx);
  583.  
  584.         if(!strlen(gMessage)) {
  585.             SendClientMessage(playerid,COLOR_WHITE,"USAGE: /pm [id] [message]");
  586.             return 1;
  587.         }
  588.  
  589.         if(!IsPlayerConnected(id)) {
  590.             SendClientMessage(playerid,COLOR_BRIGHTRED,"ERROR:Player is not Connected");
  591.             return 1;
  592.         }
  593.  
  594.         if(playerid != id) {
  595.             GetPlayerName(id,iName,sizeof(iName));
  596.             GetPlayerName(playerid,pName,sizeof(pName));
  597.             format(Message,sizeof(Message),"PM sent to %s(ID:%d): %s",iName,id,gMessage);
  598.             SendClientMessage(playerid,PM_OUTGOING_COLOR,Message);
  599.             format(Message,sizeof(Message),"**PM from %s(ID:%d): %s",pName,playerid,gMessage);
  600.             SendClientMessage(id,PM_INCOMING_COLOR,Message);
  601.             PlayerPlaySound(id,1085,0.0,0.0,0.0);
  602.             printf("PM: %s",Message);
  603.                 format(string, sizeof(string), "PM from %s to %s was: %s", pName, iName, gMessage);
  604.                 SendClientMessageToAdmins(COLOR_WHITE, string);
  605.  
  606.         }
  607.         else {
  608.             SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot PM yourself");
  609.         }
  610.         return 1;
  611.  
  612.  
  613.  
  614.  
  615. my error
  616.  
  617.  
  618. C:\Documents and Settings\Administrateur\Bureau\pastebin.comFDXX6V0N\pawno\new.pwn(337) : warning 225: unreachable code
  619. C:\Documents and Settings\Administrateur\Bureau\pastebin.comFDXX6V0N\pawno\new.pwn(337) : error 029: invalid expression, assumed zero
  620. C:\Documents and Settings\Administrateur\Bureau\pastebin.comFDXX6V0N\pawno\new.pwn(337) : warning 215: expression has no effect
  621. C:\Documents and Settings\Administrateur\Bureau\pastebin.comFDXX6V0N\pawno\new.pwn(337) : error 001: expected token: ";", but found "-identifier-"
  622. C:\Documents and Settings\Administrateur\Bureau\pastebin.comFDXX6V0N\pawno\new.pwn(337) : error 017: undefined symbol "Conneced"
  623. C:\Documents and Settings\Administrateur\Bureau\pastebin.comFDXX6V0N\pawno\new.pwn(337) : fatal error 107: too many error messages on one line
  624.  
  625. Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
  626.  
  627.  
  628. 4 Errors.
Advertisement
Add Comment
Please, Sign In to add comment