SA-MP Forums Archive
GetPlayerScore - 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: GetPlayerScore (/showthread.php?tid=609655)



GetPlayerScore - Rasyidmf - 15.06.2016

Hey guys ! this is true code ?

Quote:

new str[100];
TextDrawShowForPlayer(playerid, Score1[playerid]);
format(str,sizeof(str)," %d", GetPlayerScore(playerid));
TextDrawSetString(Score1[playerid], str);




Re: GetPlayerScore - oMa37 - 15.06.2016

No, you have to format then show the textdraw.


Re: GetPlayerScore - Rasyidmf - 15.06.2016

how ?


Re: GetPlayerScore - Sew_Sumi - 15.06.2016

Quote:
Originally Posted by Rasyidmf
View Post
how ?
Code:
new str[100];
format(str,sizeof(str)," %d", GetPlayerScore(playerid));
TextDrawSetString(Score1[playerid], str);
TextDrawShowForPlayer(playerid, Score1[playerid]);
How hard is it to understand what he said?