SA-MP Forums Archive
Text in textdraw - 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: Text in textdraw (/showthread.php?tid=244020)



Text in textdraw - aqu - 25.03.2011

Hello,I want to that in my text draw,player can see his points.So here is my textdraw:
Код:
    Turfpoints = TextDrawCreate(410.000000, 430.000000,"%s",pPoints);
    TextDrawBackgroundColor(Turfpoints, 255);
    TextDrawFont(Turfpoints, 1);
    TextDrawLetterSize(Turfpoints, 0.619999, 1.800000);
    TextDrawColor(Turfpoints, playercolor);
    TextDrawSetOutline(Turfpoints, 1);
    TextDrawSetProportional(Turfpoints, 1);
Soem think like that,but in server it shows text : "%s".
How to make that pPoints in text draw will show points ?


Re: Text in textdraw - MadeMan - 25.03.2011

pawn Код:
new string[32];
format(string, sizeof(string), "%s", pPoints);
Turfpoints = TextDrawCreate(410.000000, 430.000000,string);