Habe hier an der stelle einen Error
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate==PLAYER_STATE_DRIVER)
{
if(GetPVarInt(playerid,"Führerschein") == 0 && IstEinAuto(GetPlayerVehicleID(playerid)))
{
SendClientMessage(playerid,FARBE_GELB,"Du hast kein Führerschein!");
RemovePlayerFromVehicle(playerid);
}
else if(GetPVarInt(playerid,"LKW Schein") == 0 && IstEinLKW(GetPlayerVehicleID(playerid)))
{
SendClientMessage(playerid,FARBE_GELB,"Du hast keinen LKW Schein!");
RemovePlayerFromVehicle(playerid);
}
else if(GetPVarInt(playerid,"Heli Schein") == 0 && IstEinHeli(GetPlayerVehicleID(playerid)))
{
SendClientMessage(playerid,FARBE_GELB,"Du hast keinen Heli Schein!");
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}
hier der error
C:\Users\Florian\Desktop\MeinSCRIPT SERVER\gamemodes\GRL.pwn(654 -- 655) : warning 215: expression has no effect
C:\Users\Florian\Desktop\MeinSCRIPT SERVER\gamemodes\GRL.pwn(655) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
die zeilen sind diese
else if(GetPVarInt(playerid,"LKW Schein") == 0 && IstEinLKW(GetPlayerVehicleID(playerid)))
{