13.06.2013, 21:46
I made this command but when i want to compile it i have 4 erros:
This is my command:
Red line is line 51721 can somebody help me please and to fix all command?
Код:
C:\Icons\Samp Fajlovi\Ultra Gaming RP v.1.8\gamemodes\UGRPG.pwn(51721) : error 017: undefined symbol "str" C:\Icons\Samp Fajlovi\Ultra Gaming RP v.1.8\gamemodes\UGRPG.pwn(51721) : error 017: undefined symbol "str" C:\Icons\Samp Fajlovi\Ultra Gaming RP v.1.8\gamemodes\UGRPG.pwn(51721) : error 029: invalid expression, assumed zero C:\Icons\Samp Fajlovi\Ultra Gaming RP v.1.8\gamemodes\UGRPG.pwn(51721) : fatal error 107: too many error messages on one line
Код:
if (strcmp("/givelevel", cmdtext, true) == 0) { if(PlayerInfo[playerid][pAdmin] >= 1337) { foreach(Player, i) { PlayerInfo[i][pLevel] += 1; } format(str, sizeof(str), "Admin give level up for all players!"); SendClientMessageToAll(COLOR_LIGHTBLUE,str); return 1; } else { SendClientMessage(playerid, COLOR_ASKQ, "You are not allowed to do that!"); } }