20.08.2009, 11:53
When i type
I get these erors 
Код:
if(strcmp(cmdtext, "/carcolour", true) == 0)
{
new tmp[256];
new tmp2[256];
tmp = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xAA3333AA ,"Usage: /color [first color ID] [second color ID]");
}
else if(!strlen(tmp2))
{
ChangeVehicleColor(GetPlayerVehicleID(playerid),strval(tmp),strval(tmp));
GameTextForPlayer(playerid,"Vehicle color changed",2500,3);
}
else if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, 0xAA3333AA ,"You are not in any vehicle!");
}
else
{
ChangeVehicleColor(GetPlayerVehicleID(playerid),strval(tmp),strval(tmp2));
GameTextForPlayer(playerid,"Vehicle color changed",2500,3);
}
return 1;

Код:
C:\Documents and Settings\Administrator\Desktop\Stunt-server\gamemodes\StuntWorld.pwn(579) : error 017: undefined symbol "strtok" C:\Documents and Settings\Administrator\Desktop\Stunt-server\gamemodes\StuntWorld.pwn(579) : error 033: array must be indexed (variable "tmp") C:\Documents and Settings\Administrator\Desktop\Stunt-server\gamemodes\StuntWorld.pwn(580) : error 017: undefined symbol "strtok" C:\Documents and Settings\Administrator\Desktop\Stunt-server\gamemodes\StuntWorld.pwn(580) : error 033: array must be indexed (variable "tmp2")


