if (strcmp(\"/9mm\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 22, 500);return 1;}if (strcmp(\"/silenced\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 23, 500);return 1;}if (strcmp(\"/deagle\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 24, 500);return 1;}if (strcmp(\"/shotgun\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 25, 500);return 1;}if (strcmp(\"/sawn\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 26, 500);return 1;}if (strcmp(\"/combat\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 27, 500);return 1;}if (strcmp(\"/tec9\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 32, 500);return 1;}if (strcmp(\"/uzi\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 28, 500);return 1;}if (strcmp(\"/smg\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 29, 500);return 1;}if (strcmp(\"/ak47\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 30, 500);return 1;}if (strcmp(\"/m4\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 31, 500);return 1;}if (strcmp(\"/pc\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 46, 500);return 1;}if (strcmp(\"/rifle\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 33, 500);return 1;}if (strcmp(\"/sniper\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 34, 500);return 1;}if (strcmp(\"/boxer\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 1, 500);return 1;}if (strcmp(\"/lancfuresz\", cmdtext, true, 10) == 0){GivePlayerWeapon(playerid, 9, 500);return 1;}
if(strcmp(cmdtext, \"/sawnoff\", true)==0) { { GivePlayerWeapon(playerid, 26, 500); SendClientMessage(playerid, 0x99FFFFAA,\"Sawn-off shotgun\"); SendClientMessageToAll(0xFFFF00AA,\"Valaki vett egy sawn-off puskát(/weapons)\"); return 1;}}
if (strcmp(\"/9mm\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 22, 500);return 1;}if (strcmp(\"/silenced\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 23, 500);return 1;}if (strcmp(\"/deagle\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 24, 500);return 1;}if (strcmp(\"/shotgun\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 25, 500);return 1;}if (strcmp(\"/sawn\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 26, 500);return 1;}if (strcmp(\"/combat\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 27, 500);return 1;}if (strcmp(\"/tec9\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 32, 500);return 1;}if (strcmp(\"/uzi\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 28, 500);return 1;}if (strcmp(\"/smg\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 29, 500);return 1;}if (strcmp(\"/ak47\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 30, 500);return 1;}if (strcmp(\"/m4\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 31, 500);return 1;}if (strcmp(\"/pc\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 46, 500);return 1;}if (strcmp(\"/rifle\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 33, 500);return 1;}if (strcmp(\"/sniper\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 34, 500);return 1;}if (strcmp(\"/boxer\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 1, 500);return 1;}if (strcmp(\"/lancfuresz\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 9, 500);return 1;}
if(strcmp(cmdtext, \"/boxer\", true) == 0) { GivePlayerWeapon(playerid, 1, 500); return 1; } if(strcmp(cmdtext, \"/golf\", true) == 0) { GivePlayerWeapon(playerid, 2, 500); return 1; } if(strcmp(cmdtext, \"/gumibot\", true) == 0) { GivePlayerWeapon(playerid, 3, 500); return 1; } if(strcmp(cmdtext, \"/kes\", true) == 0) { GivePlayerWeapon(playerid, 4, 500); return 1; } if(strcmp(cmdtext, \"/baseball\", true) == 0) { GivePlayerWeapon(playerid, 5, 500); return 1; } if(strcmp(cmdtext, \"/aso\", true) == 0) { GivePlayerWeapon(playerid, 6, 500); return 1; } if(strcmp(cmdtext, \"/billiard\", true) == 0) { GivePlayerWeapon(playerid, 7, 500); return 1; } if(strcmp(cmdtext, \"/katana\", true) == 0) { GivePlayerWeapon(playerid, 8, 500); return 1; } if(strcmp(cmdtext, \"/lancfuresz\", true) == 0) { GivePlayerWeapon(playerid, 9, 500); return 1; } if(strcmp(cmdtext, \"/viragcsokor\", true) == 0) { GivePlayerWeapon(playerid, 14, 500); return 1; } if(strcmp(cmdtext, \"/bot\", true) == 0) { GivePlayerWeapon(playerid, 15, 500); return 1; } if(strcmp(cmdtext, \"/granat\", true) == 0) { GivePlayerWeapon(playerid, 16, 500); return 1; } if(strcmp(cmdtext, \"/fustgranat\", true) == 0) { GivePlayerWeapon(playerid, 17, 500); return 1; } if(strcmp(cmdtext, \"/molotov\", true) == 0) { GivePlayerWeapon(playerid, 18, 500); return 1; } if(strcmp(cmdtext, \"/9mm\", true) == 0) { GivePlayerWeapon(playerid, 22, 500); return 1; } if(strcmp(cmdtext, \"/silenced\", true) == 0) { GivePlayerWeapon(playerid, 23, 500); return 1; } if(strcmp(cmdtext, \"/deagle\", true) == 0) { GivePlayerWeapon(playerid, 24, 500); return 1; } if(strcmp(cmdtext, \"/shotgun\", true) == 0) { GivePlayerWeapon(playerid, 25, 500); return 1; } if(strcmp(cmdtext, \"/sawn\", true) == 0) { GivePlayerWeapon(playerid, 26, 500); return 1; } if(strcmp(cmdtext, \"/combat\", true) == 0) { GivePlayerWeapon(playerid, 27, 500); return 1; } if(strcmp(cmdtext, \"/uzi\", true) == 0) { GivePlayerWeapon(playerid, 28, 500); return 1; } if(strcmp(cmdtext, \"/smg\", true) == 0) { GivePlayerWeapon(playerid, 29, 500); return 1; } if(strcmp(cmdtext, \"/ak47\", true) == 0) { GivePlayerWeapon(playerid, 30, 500); return 1; } if(strcmp(cmdtext, \"/m4\", true) == 0) { GivePlayerWeapon(playerid, 31, 500); return 1; } if(strcmp(cmdtext, \"/tec9\", true) == 0) { GivePlayerWeapon(playerid, 32, 500); return 1; } if(strcmp(cmdtext, \"/rifle\", true) == 0) { GivePlayerWeapon(playerid, 33, 500); return 1; } if(strcmp(cmdtext, \"/sniper\", true) == 0) { GivePlayerWeapon(playerid, 34, 500); return 1; } if(strcmp(cmdtext, \"/pack\", true) == 0) { GivePlayerWeapon(playerid, 39, 500); return 1; } if(strcmp(cmdtext, \"/spray\", true) == 0) { GivePlayerWeapon(playerid, 41, 500); return 1; } if(strcmp(cmdtext, \"/porolto\", true) == 0) { GivePlayerWeapon(playerid, 42, 500); return 1; } if(strcmp(cmdtext, \"/fenykepezo\", true) == 0) { GivePlayerWeapon(playerid, 43, 500); return 1; } if(strcmp(cmdtext, \"pc\", true) == 0) { GivePlayerWeapon(playerid, 46, 500); return 1; }
Valószínûleg identitációs hibák vannak--> a sorok rosszul helyezkednek elszerintem így lesz a jó: if (strcmp(\"/9mm\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 22, 500);return 1;}if (strcmp(\"/silenced\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 23, 500);return 1;}if (strcmp(\"/deagle\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 24, 500);return 1;}if (strcmp(\"/shotgun\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 25, 500);return 1;}if (strcmp(\"/sawn\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 26, 500);return 1;}if (strcmp(\"/combat\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 27, 500);return 1;}if (strcmp(\"/tec9\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 32, 500);return 1;}if (strcmp(\"/uzi\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 28, 500);return 1;}if (strcmp(\"/smg\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 29, 500);return 1;}if (strcmp(\"/ak47\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 30, 500);return 1;}if (strcmp(\"/m4\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 31, 500);return 1;}if (strcmp(\"/pc\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 46, 500);return 1;}if (strcmp(\"/rifle\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 33, 500);return 1;}if (strcmp(\"/sniper\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 34, 500);return 1;}if (strcmp(\"/boxer\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 1, 500);return 1;}if (strcmp(\"/lancfuresz\", cmdtext, true) == 0){GivePlayerWeapon(playerid, 9, 500);return 1;} és próbálj szebben és átláthatóbban scriptelni
Óóó rájöttem mi a hiba. Nem húztam fel FTP-re az új .amx-et is XD Viszont rossz lett volna, ha Prototype nem írja le