Whats going on here...................... - 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: Whats going on here...................... (
/showthread.php?tid=148545)
Whats going on here...................... -
RSC_Quicker - 17.05.2010
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:
Код:
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);
Update:
Код:
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
{
}
}
}
}
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.