SA-MP Forums Archive
Is possible? - 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: Is possible? (/showthread.php?tid=489417)



Is possible? - speed258 - 22.01.2014

Hi guys is possible to use in stock enum variable?
Example:
Код:
enum test
{
 drink,
 bool:dead
}
new TESTENUM[MAX_PLAYERS][test];
stock TestStock(playid, enumv)
{
  TESTENUM[playid][enumv] = false;
}
And code:
TestStock(playerid, dead);
so my idea going to work or not? Thanks for answers.


Re: Is possible? - Vince - 22.01.2014

Yes, why wouldn't it be? However, functions need not be declared stock at all.