My Textdraws randomly stop showing
#1

ok i have a small problem with the code below:

pawn Код:
if(newstate == PLAYER_STATE_DRIVER){
        TextDrawShowForPlayer(playerid, Carname[playerid]);
        TextDrawShowForPlayer(playerid, Carh[playerid]);
        TextDrawShowForPlayer(playerid, mph[playerid]);
        TextDrawShowForPlayer(playerid, fuel[playerid]);
        CheckGas();
    }
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

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);
  }
with this code the timer doesnt work at all (and yes the function is public before someone suggests it)
Reply
#2

Are you re-creating the textdraws under CheckGas? if so, the server can only create 1024 textdraws before it just stops.
Reply
#3

nope i use TextDrawSetString in checkgas
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)