27.01.2012, 15:15
Hi i try to create a textdraw who show under the map next message: Turf yakuza... I create the textdraw:
I defined YKZtwo like this: new Text:YKZtwo;
But problem is if i do compil he show me the next errors: undefined symbol YKZtwo
Can you help me?
Код:
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);
Код:
if(IsPlayerInArea(playerid, -2267.214, 621.6765, -2132.02, 775.5302)) { TextDrawShowForPlayer(playerid, YKZtwo); } else { TextDrawHideForPlayer(playerid, YKZtwo); }
Can you help me?