SA-MP Forums Archive
Quick explanation - 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: Quick explanation (/showthread.php?tid=183573)



Quick explanation - Crayon - 16.10.2010

Hey guys, I was just wondering the meaning of this line, I think it's used for zcmd only.

pawn Код:
#pragma unused params
Thanks for the help, it's appreciated.


Re: Quick explanation - Ritchie999 - 16.10.2010

(From my own explanation)

Sometimes when you make a snippet of code and use a word like "params" you have to "new params;" or what ever. Theres some code that has "params" in it that you need to make a snipper work, but it never uses the word "params" so you use "#pragma unused params" so that you dont get any errors or warnings about that word when compiling...

Someone please correct me if i am wrong


Re: Quick explanation - mrmuffins - 16.10.2010

It means its saying:

"I'm not going to use the parameters in the command so ignore any warnings this generates and continue"

If not this might get a warning saying the params is never used.

Edit: Why me so slow at posting :/


Re: Quick explanation - Crayon - 16.10.2010

Thanks a lot guys