#1

Hi i try to create a textdraw who show under the map next message: Turf yakuza... I create the textdraw:

Код:
YKZtwo = TextDrawCreate(10.0, 429.0,"Teritoriu Yakuza");
	TextDrawAlignment(YKZtwo,0);
	TextDrawBackgroundColor(YKZtwo,0x56CA0096);
	TextDrawFont(YKZtwo,1);
	TextDrawLetterSize(YKZtwo,0.4, 1.0);
	TextDrawColor(YKZtwo,COLOR_WHITE);
	TextDrawSetOutline(YKZtwo,1);
	TextDrawSetProportional(YKZtwo,1);
	TextDrawSetShadow(YKZtwo,0);
I defined YKZtwo like this: new Text:YKZtwo;

Код:
if(IsPlayerInArea(playerid, -2267.214, 621.6765, -2132.02, 775.5302))
    {
        TextDrawShowForPlayer(playerid, YKZtwo);
    }
    else
    {
        TextDrawHideForPlayer(playerid, YKZtwo);
    }
But problem is if i do compil he show me the next errors: undefined symbol YKZtwo
Can you help me?
Reply
#2

Is YKZtwo a global variable?
Reply
#3

Yes.
Reply
#4

Solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)