[SOLVED]TextDraw problem
#1

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!
Reply
#2

Could you tell what was wrong ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)