Simple Question
#1

Hello!

I would like to know, what is this and what this mean?

PHP код:
#pragma unused 
Thanks you
Reply
#2

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
pawn Код:
#pragma unused params
since I don't need params... Hope it helped
Reply
#3

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
pawn Код:
#pragma unused params
since I don't need params... Hope it helped
oh...Think, I get it. Thanks
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)