SA-MP Forums Archive
Need some help of a good scripter - 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: Need some help of a good scripter (/showthread.php?tid=83586)



Need some help of a good scripter - Futurezx - 26.06.2009

How do i make something like the textdraw is changing colors from blue to yellow as example
And for normal players ur color name? can someone explain that to me


Re: Need some help of a good scripter - James_Alex - 26.06.2009

try this
pawn Код:
new str[256];
format(str, sizeof(str), "%s", GetPlayerColor(playerid));
TextDrawColor(yourtext, str);



Re: Need some help of a good scripter - MenaceX^ - 26.06.2009

Quote:
Originally Posted by James_Alex
try this
pawn Код:
new str[256];
format(str, sizeof(str), "%s", GetPlayerColor(playerid));
TextDrawColor(yourtext, str);
256 is a wasted array, don't you think?
also GetPlayerColor won't return the Color name or what ever you're trying to format there.