14.08.2014, 15:21
(
Последний раз редактировалось MacacoDoArtico; 14.08.2014 в 17:32.
)
Hey guys, so I'm making a TextDraw for all players with the server name, but I've had some problems, the TextDraw is good and created, but when I do " TextDrawShowForAll(Textdraw x) " it gives me a error.
So this is the code were I created the TextDraws ( OnPlayerConnect )
Everything good, no errors, in my compiler, but, the problem is on top of the gamemode were I show the TextDraw for all, here's the code:
And this is the errors:
But I never define " TextDrawShowForAll " i don't understand, apreciate any help 
Edit: Fixed
So this is the code were I created the TextDraws ( OnPlayerConnect )
PHP код:
{
Textdraw0 = TextDrawCreate(446.000000, 389.000000, "Portugal Rising");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 3);
TextDrawLetterSize(Textdraw0, 0.649999, 1.800000);
TextDrawColor(Textdraw0, 10079487);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawSetSelectable(Textdraw0, 0);
}
{
Textdraw1 = TextDrawCreate(485.000000, 414.000000, "Roleplay");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 2);
TextDrawLetterSize(Textdraw1, 0.539999, 2.100000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 2);
TextDrawSetSelectable(Textdraw1, 0);
}
PHP код:
new Text:Textdraw0;
TextDrawShowForAll(Textdraw0);
new Text:Textdraw1;
TextDrawShowForAll(Textdraw1);
Код:
C:\Users\Joka\Desktop\New folder (2)\gamemodes\GamemodeRP.pwn(32) : error 021: symbol already defined: "TextDrawShowForAll" C:\Users\Joka\Desktop\New folder (2)\gamemodes\GamemodeRP.pwn(34) : error 021: symbol already defined: "TextDrawShowForAll"

Edit: Fixed