02.05.2009, 15:43
ok i have a small problem with the code below:
the problem is that the textdraws work perfectly for a bit then for some reason (i have no idea why) they do not show when i enter the vehicle as a driver and the only way i can fix it is by restarting the gamemode
[br]
i also have a problem with another bit of code
with this code the timer doesnt work at all (and yes the function is public before someone suggests it)
pawn Код:
if(newstate == PLAYER_STATE_DRIVER){
TextDrawShowForPlayer(playerid, Carname[playerid]);
TextDrawShowForPlayer(playerid, Carh[playerid]);
TextDrawShowForPlayer(playerid, mph[playerid]);
TextDrawShowForPlayer(playerid, fuel[playerid]);
CheckGas();
}
[br]
i also have a problem with another bit of code
pawn Код:
if(veh == 416 && PartTimeJob[playerid] == 0){
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~w~Type /parttime to accept the part time position of medic", 3000, 3);
ptj[playerid] = SetTimer("removefromveh", 30000, false);
}