16.09.2015, 15:45
Код:
C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SANFIERROTRCNR.pwn(5882) : warning 225: unreachable code C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SANFIERROTRCNR.pwn(5893) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SANFIERROTRCNR.pwn(5894) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SANFIERROTRCNR.pwn(5895) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SANFIERROTRCNR.pwn(5896) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SANFIERROTRCNR.pwn(5897) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SANFIERROTRCNR.pwn(5898) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
Код:
new cmd[256]; new idx; cmd = strtok(cmdtext, idx); if (strcmp(cmdtext, "/tazerenk", true) ==0) { new tmp[256]; cmd = strtok(cmdtext, idx); if (!strlen(tmp)) { SendClientMessage(playerid, 0x00E800FF, "Usage: /lasercol [color]"); return 1; } if (!strcmp(tmp, "red", true)) SetPlayerAttachedObject(playerid, "1", 18643); else if (!strcmp(tmp, "blue", true)) SetPlayerAttachedObject(playerid, "1", 19080); else if (!strcmp(tmp, "pink", true)) SetPlayerAttachedObject(playerid, "1", 19081); else if (!strcmp(tmp, "orange", true)) SetPlayerAttachedObject(playerid, "1", 19082); else if (!strcmp(tmp, "green", true)) SetPlayerAttachedObject(playerid, "1", 19083); else if (!strcmp(tmp, "yellow", true)) SetPlayerAttachedObject(playerid, "1", 19084); else SendClientMessage(playerid, 0x00E800FF, "Colour not available!"); return 1; } return 0; } } return 1; }