Hallo,
ich wollte grade Fraktionscars einfügen.
Erstellte die Schleife.
if(newstate==PLAYER_STATE_DRIVER)
{
for(new i=0; i<sizeof(SFPD_CARS); i++)
}
if(GetPlayerVehicleID(playerid)==SFPD_CARS[i])
{
if(pInfo[playerid][Fraktion] != 1)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,COLOR_RED,"Du bist nicht beim SFPD!");
}
}
Bekamm unnormal viele Errors
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(349) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(370) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(400) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(423) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(442) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(462) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(496) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(517) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(537) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(557) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(575) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(581) : error 017: undefined symbol "PlayerName"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(583) : error 017: undefined symbol "PlayerName"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(602) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(625) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(644) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(663) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(666) : error 017: undefined symbol "PlayerName"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(685) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(688) : error 017: undefined symbol "PlayerName"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(707) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(710) : error 017: undefined symbol "PlayerName"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(728) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(731) : error 017: undefined symbol "PlayerName"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(749) : error 017: undefined symbol "sscanf"
C:\Users\T0BiEH\Desktop\SanFierro - Reallife\gamemodes\sf-rl.pwn(770) : error 017: undefined symbol "sscanf"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Wenn ich die Zeile for(new i=0; i<sizeof(SFPD_CARS); i++) mit // davor raus kommetiere sind alle Erros weg..
Ich habe schon statt i alles andere genommen, geht alles nicht.
Bitte um Hilfe
#e: Tippfehler