25.06.2013, 09:42
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);
}