public OnPlayerStateChange(playerid, newstate, oldstate)
if(newstate==PLAYER_STATE_DRIVER)
{
for(new i=0; i<sizeof(fbi); i++)
{
if(GetPlayerVehicleID(playerid)==fbi[i])
{
if(GetPVarInt(playerid,"Fraktion")!=2)
{
RemovePlayerFromVehicle(playerid);SendClientMessage(playerid,ROT,"Du darfst dieses Fahrzeug nicht fahren.");
}
}
}
return 1;
}
der Error zeigt die Zeile unter dem letzten } an:warning 209: function "OnPlayerStateChange" should return a value