If team does not equal ...
#2

Debug, debug, debug. If something doesn't work then you add prints all over the place so you know what a variable holds at every point in code.

pawn Код:
if(gteam[playerid] != Team_Fire)
    {
    printf("DEBUG: gteam[%d] = %d, Team_Fire = %d", playerid, gteam[playerid], Team_Fire);
    SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You are not authorised to use that vehicle.");
    RemovePlayerFromVehicle(playerid);
    }
Reply


Messages In This Thread
If team does not equal ... - by K9Alex - 25.06.2013, 09:39
Re: If team does not equal ... - by Vince - 25.06.2013, 09:42
Re: If team does not equal ... - by K9Alex - 25.06.2013, 09:55
Re: If team does not equal ... - by K9Alex - 26.06.2013, 04:41

Forum Jump:


Users browsing this thread: 2 Guest(s)