[SOLVED]TextDraw problem - 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]TextDraw problem (
/showthread.php?tid=113435)
[SOLVED]TextDraw problem -
kamilbam - 13.12.2009
Hi! i got a little problem with my showing score textdraw, i wanted to make textdraw that gonna show player score. It works well but the problem is that this textdraw shows up only for me
not for other players ;/ this is the code:
Код:
new Text:Textdraw1[MAX_PLAYERS];
Код:
for(new x=0; x<200; x++)
{
Textdraw1[x] = TextDrawCreate(499.000000,126.000000," ");
TextDrawUseBox(Textdraw1[x],1);
TextDrawBoxColor(Textdraw1[x],0x00000099);
TextDrawTextSize(Textdraw1[x],686.000000,-4.000000);
TextDrawAlignment(Textdraw1[x],0);
TextDrawBackgroundColor(Textdraw1[x],0x00000000);
TextDrawFont(Textdraw1[x],1);
TextDrawLetterSize(Textdraw1[x],0.399999,1.500000);
TextDrawColor(Textdraw1[x],0xffffff99);
TextDrawSetOutline(Textdraw1[x],1);
TextDrawSetProportional(Textdraw1[x],1);
TextDrawSetShadow(Textdraw1[x],1);
}
Код:
SetTimer("sprawdzeniescoru",2000,true);
Код:
public sprawdzeniescoru(playerid)
{
new scores[128];
format(scores, sizeof(scores), "Score: %i",GetPlayerScore(playerid));
TextDrawSetString(Textdraw1[playerid], scores);
return 1;
}
Код:
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
what can be wrong ?
Edit: Solved thx to Zamaroth!
Re: [SOLVED]TextDraw problem -
Unte99 - 11.08.2010
Could you tell what was wrong ?