ich bekomme immer 6 errors wenn ich folgenden command einfügen will:
H:\Spiele\GTA San Andreas\gamemodes\Race-Mode.pwn(197) : error 017: undefined symbol "strtok"
H:\Spiele\GTA San Andreas\gamemodes\Race-Mode.pwn(197) : error 033: array must be indexed (variable "tmp")
H:\Spiele\GTA San Andreas\gamemodes\Race-Mode.pwn(221) : error 017: undefined symbol "string"
H:\Spiele\GTA San Andreas\gamemodes\Race-Mode.pwn(221) : error 017: undefined symbol "string"
H:\Spiele\GTA San Andreas\gamemodes\Race-Mode.pwn(221) : error 029: invalid expression, assumed zero
H:\Spiele\GTA San Andreas\gamemodes\Race-Mode.pwn(221) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
Alles anzeigen
hier die zeilen:
if(strcmp(cmdtext,"/eject",true)==0)
{
new vehicleid;
new pid;
new tmp[256];
new playerstate = GetPlayerState(playerid);
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
tmp = strtok(cmdtext,idx);
if(!IsPlayerInAnyVehicle(playerid)){
SendClientMessage(playerid,0xFF004040,"You are not in a Vehicle");
return 1;
}
if(playerstate == PLAYER_STATE_PASSENGER){
SendClientMessage(playerid,0xFF004040,"Passengers can't use this!");
return 1;
}
vehicleid = GetPlayerVehicleID(playerid);
if(!strlen(tmp)){
SendClientMessage(playerid,0xFFFFFFAA,"Usage: /eject [playerid]");
return 1;
}
pid = strval(tmp);
if(!IsPlayerConnected(pid)){
SendClientMessage(playerid,0xFF004040,"That player is not Connected...");
return 1;
}
if(!IsPlayerInVehicle(pid,vehicleid)){
SendClientMessage(playerid,0xFF004040,"That player is not in your Vehicle...");
return 1;
}
RemovePlayerFromVehicle(pid);
format(string,sizeof(string),"You have been kicked from %s's Vehicle",playername);
SendClientMessage(pid,0xFF004040,string);
return 1;
}
kann mir vlt jemand helfen??
mfg HwS-Marshall