CheckATC Code Issue
#1

Hmm....

So I have this ATC system Im making and It seems to not want to work. The only part that I don't have working is the vid part.

I defined vid as:
pawn Код:
vid = GetPlayerVehicleID(playerid);
Heres My Code Obviously with the forward:

pawn Код:
public CheckATC(playerid,newstate)
{
new vid = GetPlayerVehicleID(playerid);
if(ATCAllow[playerid] == 0 || newstate == PLAYER_STATE_DRIVER)
{
TogglePlayerControllable(playerid,0);
}
if(ATCAllow[playerid] == 1 && newstate == PLAYER_STATE_DRIVER)
{
TogglePlayerControllable(playerid,1);
}
}
Reply


Messages In This Thread
CheckATC Code Issue - by [UG]Scripter - 21.11.2010, 04:23
Re: CheckATC Code Issue - by The_Gangstas - 21.11.2010, 04:27
Re: CheckATC Code Issue - by Grim_ - 21.11.2010, 05:53
Re: CheckATC Code Issue - by Haydz - 21.11.2010, 06:46
Re: CheckATC Code Issue - by [UG]Scripter - 21.11.2010, 07:52

Forum Jump:


Users browsing this thread: 1 Guest(s)