SA-MP Forums Archive
My Textdraws randomly stop showing - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: My Textdraws randomly stop showing (/showthread.php?tid=75521)



My Textdraws randomly stop showing - jonesy - 02.05.2009

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)


Re: My Textdraws randomly stop showing - Joe Staff - 02.05.2009

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


Re: My Textdraws randomly stop showing - jonesy - 02.05.2009

nope i use TextDrawSetString in checkgas