Team vehicles
#11

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?
pawn Код:
stock TeamCar[4][22];
and on OnPlayerStateChange, i guess i made this wrong?
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;
}
And the errors
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
Reply


Messages In This Thread
Team vehicles - by cruising - 02.04.2011, 13:55
Re: Team vehicles - by CyNiC - 02.04.2011, 14:00
Re: Team vehicles - by tanush - 02.04.2011, 14:15
Re: Team vehicles - by cruising - 02.04.2011, 14:26
Re: Team vehicles - by cruising - 02.04.2011, 14:33
Re: Team vehicles - by LiamM - 02.04.2011, 14:39
Re: Team vehicles - by cruising - 02.04.2011, 15:20
AW: Team vehicles - by Nero_3D - 02.04.2011, 15:37
Re: AW: Team vehicles - by cruising - 02.04.2011, 16:01
AW: Re: AW: Team vehicles - by Nero_3D - 02.04.2011, 16:11
Re: Team vehicles - by cruising - 02.04.2011, 16:33
Re: Team vehicles - by tanush - 03.04.2011, 14:09

Forum Jump:


Users browsing this thread: 2 Guest(s)