02.04.2011, 16:33
Hmm there is still something i do wrong, and that bc i not sure what you mean what to do in OnPlayerStateChange
i have this on top of script, hope it is right?
and on OnPlayerStateChange, i guess i made this wrong?
And the errors
i have this on top of script, hope it is right?
pawn Код:
stock TeamCar[4][22];
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
for(new var; var < sizeof Team4Car; var++)
{
if(vehicleid == Team1Car[var])
{
if(PlayerBase[playerid][pMedlem] != 0 && PlayerBase[playerid][pLedare] != 0) RemovePlayerFromVehicle(playerid);
}
if(vehicleid == Team2Car[var])
{
if(PlayerBase[playerid][pMedlem] != 3 && PlayerBase[playerid][pLedare] != 3) RemovePlayerFromVehicle(playerid);
}
if(vehicleid == Team3Car[var])
{
if(PlayerBase[playerid][pMedlem] != 1 && PlayerBase[playerid][pLedare] != 1) RemovePlayerFromVehicle(playerid);
}
if(vehicleid == Team4Car[var])
{
if(PlayerBase[playerid][pMedlem] != 2 && PlayerBase[playerid][pLedare] != 2) RemovePlayerFromVehicle(playerid);
}
}
return 1;
}
pawn Код:
C:\Users\Per\Desktop\Airstrike Battle1 - Copy\gamemodes\Fort4444.pwn(91) : error 017: undefined symbol "Team1Car"
C:\Users\Per\Desktop\Airstrike Battle1 - Copy\gamemodes\Fort4444.pwn(91) : warning 215: expression has no effect
C:\Users\Per\Desktop\Airstrike Battle1 - Copy\gamemodes\Fort4444.pwn(91) : error 001: expected token: ";", but found "]"
C:\Users\Per\Desktop\Airstrike Battle1 - Copy\gamemodes\Fort4444.pwn(91) : error 029: invalid expression, assumed zero
C:\Users\Per\Desktop\Airstrike Battle1 - Copy\gamemodes\Fort4444.pwn(91) : fatal error 107: too many error messages on one line