#1

Removed.
Reply
#2

pawn Код:
if(newstate == PLAYER_STATE_DRIVER && AdminCar(GetVehicleModel(GetPlayerVehicleID(playerid) ) ) )
You don't finish the line on an if statement ( ; ) and you were missing a few brackets.
Reply
#3

Removed.
Reply
#4

Try this:

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(IsBeingSpeced[playerid] == 1)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(spectatingid[i] == playerid)
            {
                if(newstate == PLAYER_STATE_PASSENGER || newstate == PLAYER_STATE_DRIVER) PlayerSpectateVehicle(i, GetPlayerVehicleID(playerid));
                if(newstate == PLAYER_STATE_ONFOOT) PlayerSpectatePlayer(i, playerid);
            }
        }
    }

    if(newstate == PLAYER_STATE_DRIVER && AdminCar[GetVehicleModel(GetPlayerVehicleID(playerid))])
    {

        if(!IsCnRAdmin(playerid))
        {
            RemovePlayerFromVehicle(playerid);
            GameTextForPlayer(playerid, "~r~this is an admin vehicle~n~~p~ejected", 4000, 3);
        }
    }
    return 1;
}
Reply
#5

pawn Код:
if(newstate == PLAYER_STATE_DRIVER && AdminCar[GetVehicleModel(GetPlayerVehicleID(playerid))] )
You had AdminCar( instead of admincar[
AdminCar is a variable, not a function or macro.
Reply
#6

Didn't see it was a variable not a function.. I'm out.
Reply
#7

Removed.
Reply
#8

show us the /adcar CMD code
Reply
#9

Removed.
Reply
#10

show the function for UnknownCMD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)