25.06.2009, 17:06
Quote:
Originally Posted by TraNe15
oups..
I:\Documents and Settings\OrKo\Desktop\Gta Sa-Mp Server\OrKo's Server\gamemodes\Stunt.pwn(579) : error 017: undefined symbol "strtok" I:\Documents and Settings\OrKo\Desktop\Gta Sa-Mp Server\OrKo's Server\gamemodes\Stunt.pwn(579) : error 008: must be a constant expression; assumed zero I:\Documents and Settings\OrKo\Desktop\Gta Sa-Mp Server\OrKo's Server\gamemodes\Stunt.pwn(581) : error 017: undefined symbol "Red1" I:\Documents and Settings\OrKo\Desktop\Gta Sa-Mp Server\OrKo's Server\gamemodes\Stunt.pwn(587) : error 017: undefined symbol "COLOR" I:\Documents and Settings\OrKo\Desktop\Gta Sa-Mp Server\OrKo's Server\gamemodes\Stunt.pwn(584) : warning 204: symbol is assigned a value that is never used: "CheckID" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. I can correct color errors.. But other two?? |
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/getwanted")) {
new tmp[128] = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_RED, "Error: /getwanted [Player ID]");
return 1;
}
new string[128], Wanted, CheckID = strval(tmp);
Wanted = GetPlayerWantedLevel(CheckID);
format(string, 128, "This player has a %d Wanted Level", Wanted);
SendClientMessage(playerid, COLOR, string);
return 1;
}