[SOLVED] GameTextForPlayer doesn't show Number 1 - 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: [SOLVED] GameTextForPlayer doesn't show Number 1 (
/showthread.php?tid=93828)
[SOLVED] GameTextForPlayer doesn't show Number 1 -
kevin974 - 27.08.2009
Код:
format(string, sizeof(string), "Level: ~r~%d", HouseInfo[h][hLevel]);
GameTextForPlayer(i,string, 1100, 3);
For some reason %d doesn't show number 1. But the variable is still holding the number.
So i dont know why its not displaying it.
Re: GameTextForPlayer doesn't show Number 1 -
Backwardsman97 - 27.08.2009
Are you sure the variable is getting set to something or not set to the write thing?
Re: GameTextForPlayer doesn't show Number 1 -
HuRRiCaNe - 27.08.2009
have u tested making it a send client message? so u can check if it works?
Re: GameTextForPlayer doesn't show Number 1 -
kevin974 - 27.08.2009
Quote:
Originally Posted by BiG_Sm0k3
have u tested making it a send client message? so u can check if it works?
|
yes i have and it does send me the correct value.
It will return the values 0, 2.etc
Bu for some reason it doesn't show 1.
Re: GameTextForPlayer doesn't show Number 1 -
Joe Staff - 27.08.2009
Not sure why it would do that, try spacing the color escape code away from the %d.
Re: GameTextForPlayer doesn't show Number 1 -
kevin974 - 27.08.2009
Thank you Joe Staff, it works.