SA-MP Forums Archive
Gametext doesn't show up correct - 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: Gametext doesn't show up correct (/showthread.php?tid=105307)



Gametext doesn't show up correct - 0ne - 28.10.2009

Hello,

Код:
new DPs[128],DBn[128];
			  format(string,sizeof(string),"~y~%d~n~~g~X%d",valstr(DPs,DriftPointsNow[g],false), format(DBn,sizeof(DBn),"X%i",DriftBonus[g]));
  			GameTextForPlayer(playerid,string,3000,6);
This code should show like:

Drift Points on first, and on second drift bonus: X1,2,3,4,5 but it shows only:

3
X1;

4
X1;

2
X1;

As i keep drifting i get the money but it doesn't show the points right
any help?



Re: Gametext doesn't show up correct - MadeMan - 28.10.2009

pawn Код:
format(string,sizeof(string),"~y~%d~n~~g~X%d",DriftPointsNow[g], DriftBonus[g]);
GameTextForPlayer(playerid,string,3000,6);
This is all you need