13.09.2017, 15:07
Hello,
I've got several questions regarding TextDraws.
1. In my server, at some point, all of the textdraws go missing. I'm not sure what causes this. I'm pretty sure you guys cant know either from my description, but could it be because I hide the textdraws instead of destroying them?
For example this is my code:
PlayerTemp[playerid][Test] = TextDrawCreate(463.333404, 25.318511, "Test");
and then when the player wants it gone, I use TextDrawHide, and once a player uses the CMD again it just creates a new Textdraw in the same variable instead of showing the hidden one? Could this be creating mass textdraws that eventually go off the samp limits and causes the bug?
2. My background overrides the main HUD(the one that includes the HP, AP and Cash) how can I push it backwards so that the cash/money/armour will be visible to the user?
Tips?
Thanks!
I've got several questions regarding TextDraws.
1. In my server, at some point, all of the textdraws go missing. I'm not sure what causes this. I'm pretty sure you guys cant know either from my description, but could it be because I hide the textdraws instead of destroying them?
For example this is my code:
PlayerTemp[playerid][Test] = TextDrawCreate(463.333404, 25.318511, "Test");
and then when the player wants it gone, I use TextDrawHide, and once a player uses the CMD again it just creates a new Textdraw in the same variable instead of showing the hidden one? Could this be creating mass textdraws that eventually go off the samp limits and causes the bug?
2. My background overrides the main HUD(the one that includes the HP, AP and Cash) how can I push it backwards so that the cash/money/armour will be visible to the user?
Tips?
Thanks!