Textdraw Losing Letters
#1

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;
}
Reply
#2

Your problem is here
Format (string, 15,

Replace that 15 with sizeof (string) like
format (string,sizeof (string)," wanted etc
Reply
#3

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
Reply
#4

With pleasure, is a common and small mistake.
Reply
#5

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
Reply
#6

always, the answer is front of you, but you don't see it. nice looking Mister0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)