Turf - 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)
+--- Thread: Turf (
/showthread.php?tid=313808)
Turf -
Scott_Williams - 27.01.2012
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?
Re: Turf -
[HK]Ryder[AN] - 27.01.2012
Is YKZtwo a global variable?
Re: Turf -
Scott_Williams - 27.01.2012
Yes.
Re: Turf -
Scott_Williams - 27.01.2012
Solved.