Simple Question - 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: Simple Question (
/showthread.php?tid=430633)
Simple Question -
Areax - 14.04.2013
Hello!
I would like to know, what is this and what this mean?
Thanks you
Re: Simple Question -
L.Hudson - 14.04.2013
I'll explain it to you as I understand it.
#pragma unused is used when you want to avoid something that is required to be typed. Example:
pawn Код:
CMD:help(playerid, params[])
I'll type
since I don't need params... Hope it helped
Re: Simple Question -
Areax - 14.04.2013
Quote:
Originally Posted by L.Hudson
I'll explain it to you as I understand it.
#pragma unused is used when you want to avoid something that is required to be typed. Example:
pawn Код:
CMD:help(playerid, params[])
I'll type since I don't need params... Hope it helped
|
oh...Think, I get it. Thanks
Re : Simple Question -
yusei - 14.04.2013
new X;
#pragma unused X
basically that marks VARIBALE X as (USED variable ) , so you don't get compiler warnings.
else In case of ZCMD, it's not necessary to add the unused VARIBALE X
it's only in DCMD you get warnings