Textdraw Losing Letters - 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)
+--- Thread: Textdraw Losing Letters (
/showthread.php?tid=589551)
Textdraw Losing Letters -
SecretBoss - 20.09.2015
Hello again,
I have a problem with my new wanteds system, each time I am getting 10+ wanteds the textdraw loses 1 letter for example if I have 0 wanteds the text is 0 wanteds but if I get 10+ it will be 10 wanted and it will be 100+ it will be 100 wante
Things I tried
- Increased the string
- Removed extra characters
My update code
Код:
forward UpdateWanteds(playerid);
public UpdateWanteds(playerid)
{
new string[68];
format(string, 15, "~g~%i ~w~wanteds", PlayerInfo[playerid][pWanteds]);
TextDrawSetString(Text:WantedTD, string);
return 1;
}
Re: Textdraw Losing Letters -
Mister0 - 20.09.2015
Your problem is here
Format (string, 15,
Replace that 15 with sizeof (string) like
format (string,sizeof (string)," wanted etc
Re: Textdraw Losing Letters -
SecretBoss - 20.09.2015
Quote:
Originally Posted by Mister0
Your problem is here
Format (string, 15,
Replace that 15 with sizeof (string) like
format (string,sizeof (string)," wanted etc
|
Why the fuck I didn't see it? pffff thanks man for your help I just didn't notice it xD
Re: Textdraw Losing Letters -
Mister0 - 20.09.2015
With pleasure, is a common and small mistake.
Re: Textdraw Losing Letters -
SecretBoss - 20.09.2015
Quote:
Originally Posted by Mister0
With pleasure, is a common and small mistake. 
|
Sometimes you do wrongs not because you don't know how to script but because you don't remember, anyway +REP for you my friend
Re: Textdraw Losing Letters -
M0HAMMAD - 20.09.2015
always, the answer is front of you, but you don't see it. nice looking Mister0