Text Draw Color not changes - 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: Text Draw Color not changes (
/showthread.php?tid=244439)
Text Draw Color not changes -
aqu - 27.03.2011
Hello,on player request class I want to make that there will show different text on each skin.
So here my script
Код:
new Text:Title;
public OnPlayerRequestClass(playerid, classid)
{
new classtitle[32];
// Text Draws
Title = TextDrawCreate(237.000000, 309.000000, " ");
TextDrawBackgroundColor(Title, 255);
TextDrawFont(Title, 2);
TextDrawLetterSize(Title, 0.529999, 1.800000);
TextDrawSetOutline(Title, 0);
TextDrawSetProportional(Title, 1);
TextDrawSetShadow(Title, 1);
// When Selecting Skin
switch(classid)
{
case 0:
{
format(classtitle,sizeof(classtitle),"Grove Families");
TextDrawSetString(Title,classtitle);
TextDrawShowForPlayer(playerid,Title);
// Here is my Color
TextDrawColor(Title, COLOR_GROVE);
}
}
But when in server am selecting ,text draw color beeing White,but should be green.Where is problem ?
Re: Text Draw Color not changes -
Vince - 27.03.2011
TextDrawSetString(Title, "~g~Grove Families");
Oh by the way, you will get problems when multiple players are in class selection at once.
Re: Text Draw Color not changes -
MadeMan - 27.03.2011
TextDrawColor must be before TextDrawShowForPlayer
pawn Код:
case 0:
{
format(classtitle,sizeof(classtitle),"Grove Families");
TextDrawSetString(Title,classtitle);
TextDrawColor(Title, COLOR_GROVE);
TextDrawShowForPlayer(playerid,Title);
}