02.07.2014, 19:26
Hey,
I wonder maybe anyone could help newbie out. My problem is i wanted to transfer simple cmd from LA-RP to this GM
(( https://sampforum.blast.hk/showthread.php?tid=523030 )) How can i fix those errors?
Error's
I wonder maybe anyone could help newbie out. My problem is i wanted to transfer simple cmd from LA-RP to this GM
(( https://sampforum.blast.hk/showthread.php?tid=523030 )) How can i fix those errors?
Код:
CMD:setskin(playerid, params[]) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "Kasuta: /setskin [MдngijaID/Osanimest] [Skinni ID]"); return 1; } new para1; new level; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); if(level > 299 || level < 1) { SendClientMessage(playerid, COLOR_WHITE, "Vale ID!"); return 1; } if(PlayerData[playerid][AdminLevel] < 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pChar] = level; format(string, sizeof(string), "Sinu skinn on vahetatud admin %s poolt", sendername); SendClientMessage(para1, COLOR_WHITE, string); format(string, sizeof(string), "Sa vahetasid mдngija %s skinni.", giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); SetPlayerSkin(para1, PlayerInfo[para1][pChar]); } }//not connected } else { SendClientMessage(playerid, COLOR_WHITE, " You'r not admin!!"); } } return 1; }
Код:
F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1040) : error 017: undefined symbol "tmp" F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1040) : error 017: undefined symbol "strtok" F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1041) : error 017: undefined symbol "tmp" F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1043) : error 017: undefined symbol "COLOR_GRAD2" F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1048) : error 017: undefined symbol "ReturnUser" F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1049) : error 017: undefined symbol "tmp" F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1049) : error 017: undefined symbol "strtok" F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1050) : error 017: undefined symbol "tmp" F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1051) : error 017: undefined symbol "COLOR_GREY" F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1052) : error 017: undefined symbol "PlayerInfo" F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1052) : warning 215: expression has no effect F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1052) : error 001: expected token: ";", but found "]" F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1052) : error 029: invalid expression, assumed zero F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1052) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase