The TextDraw .. its not changing >_< - 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: The TextDraw .. its not changing >_< (
/showthread.php?tid=292678)
The TextDraw .. its not changing >_< -
spd_sahil - 24.10.2011
pawn Код:
if(killerid == player1 && playerid == player2)
{
new string[256];
player1score++;
format(string,256,"%i",player1score);
TextDrawSetString(Textdraw0,string);
}
if(killerid == player2 && playerid == player1)
{
new string[256];
player2score++;
format(string,256,"%i",player1score);
TextDrawSetString(Textdraw1,string);
}
Tell me if you spot any error
Re: The TextDraw .. its not changing >_< -
SmiT - 24.10.2011
Well, it shouldn't be:
pawn Код:
if(killerid == player1 && playerid == player2)
{
new string[256];
player1score++;
format(string,256,"%i",player1score);
TextDrawSetString(Textdraw0,string);
}
if(killerid == player2 && playerid == player1)
{
new string[256];
player2score++;
format(string,256,"%i",player2score); // Player2score
TextDrawSetString(Textdraw1,string);
}
?
Re: The TextDraw .. its not changing >_< -
spd_sahil - 24.10.2011
Oww Damn.. that was so stupid
thanks