17.05.2010, 20:11
Hey Dah bitch is back. And yea I'm pissed.
I spend two hours to create a textdraw because I never did before.
Well bad results.
I got my Box and my Text, At the good position
But why the hell i get the Text Double??
Here i show you some parts:
Update:
I get the: Points: (ammount) Good.
But I also get a second: Points: 0
here a screen.
And I'm 100 % sure there isn't another Textdraw or something in my script.
I spend two hours to create a textdraw because I never did before.
Well bad results.
I got my Box and my Text, At the good position
But why the hell i get the Text Double??
Here i show you some parts:
Код:
pStunt[playerid][PointText] = TextDrawCreate(501.000000, 84.000000, "_"); TextDrawBackgroundColor(pStunt[playerid][PointText], Black); TextDrawFont(pStunt[playerid][PointText], 1); TextDrawLetterSize(pStunt[playerid][PointText], 0.310000, 1.100000); TextDrawColor(pStunt[playerid][PointText], White); TextDrawSetOutline(pStunt[playerid][PointText], 1); TextDrawSetShadow(pStunt[playerid][PointText],0);
Код:
public CheckPlayer() { for(new i = 0;i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerWorld[i] == 0) // stunt { new pointstring[56]; format(pointstring,sizeof(pointstring),"Points: ~R~%d",pStunt[i][Points]); TextDrawSetString(pStunt[i][PointText],pointstring); } if(PlayerWorld[i] == 1) // roleplay { } } } }
But I also get a second: Points: 0
here a screen.
And I'm 100 % sure there isn't another Textdraw or something in my script.
