"You cant access this" - Vehicle limitation error
#1

pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
     {
        new vehicle = GetPlayerVehicleID(playerid);
        if(PlayerData[playerid][pFaction] == -1 && VehicleData[vehicle][vFaction] != -1)
        {
            SendClientMessage(playerid, COLOR_RED, "You can't access this!");
            RemovePlayerFromVehicle(playerid);
        }
        else if(PlayerData[playerid][pFaction] == VehicleData[vehicle][vFaction] && VehicleData[vehicle][vFaction] != -1 && PlayerData[playerid][pFaction] != -1)
        {
            SendClientMessage(playerid, COLOR_RED, "You can't access this!");
            RemovePlayerFromVehicle(playerid);
        }
    }
That's the code I use right now.

I don't have any clue why it might not work but, this is getting on my nerves. I've tried almost all kind of solutions, NONE will help.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)