SA-MP Forums Archive
TextDraw ID's - 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: TextDraw ID's (/showthread.php?tid=89410)



TextDraw ID's - Blacklite - 02.08.2009

Hi

I want to do something like this:

pawn Код:
TextDraw[_:TextDraw] = 1;
Would that work?

Thanks


Re: TextDraw ID's - Andom - 02.08.2009

Quote:
Originally Posted by Blacklite
Hi

I want to do something like this:

pawn Код:
TextDraw[_:TextDraw] = 1;
Would that work?

Thanks
Uuhm, what r u doing
What are you trying to do?


Re: TextDraw ID's - RyDeR` - 02.08.2009

Yeah what are you trying to do? And what function? :S


Re: TextDraw ID's - mprofitt - 02.08.2009

Quote:
Originally Posted by Blacklite
Hi

I want to do something like this:

pawn Код:
TextDraw[_:TextDraw] = 1;
Would that work?

Thanks
You can, I use TextDraws in enums all the time...

Код:
enum GTDraw
{
	Text:gText,
	active,
}
new gGameTextDraw[MAX_PLAYERS][GTDraw];



Re: TextDraw ID's - Blacklite - 02.08.2009

Yeah, but do any of you actually know what this does:

pawn Код:
_:TextDraw
Because nobody seems to get the idea..

Basically, _: removes the type from the variable, which I hope would return a number, the ID for the textdraw from 1-1024 or whatever.