isused function? O.o - 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: isused function? O.o (
/showthread.php?tid=244354)
isused function? O.o -
$t3ve - 27.03.2011
I never found a function : isused.
Maybe someone can make one / found one?
Example:
Код:
new VERIABLE;
#if !isused VERIABLE
#pragma unused VERIABLE
#endif
Re: isused function? O.o -
admantis - 27.03.2011
The pawn compiler will tell you if a symbol is unused, than you can add #pragma unused
To check undefined symbols
pawn Код:
#if !defined xxx
#define xxx
Re: isused function? O.o -
Ruffles. - 27.03.2011
Quote:
Originally Posted by $t3ve
Код:
new VERIABLE;
#if !isused VERIABLE
#pragma unused VERIABLE
#endif
|
It's Variable
Re: isused function? O.o -
Mike Garber - 27.03.2011
pawn Код:
new variable = -1;
// entire gamemode
if(variable == -1)
{
#pragma unused variable
}
Just an idea, i wont and can't test it on my Mac right now xD
Re: isused function? O.o -
$t3ve - 27.03.2011
Well, thanks for (trying) to help me
, but it would be a very useful function.
My gamemode is not very optimized (with veriables) and if I remove some things, I hate that: Symbol has been never used: ...
Re: isused function? O.o - [03]Garsino - 27.03.2011
Re: isused function? O.o -
$t3ve - 27.03.2011
Quote:
Originally Posted by [03]Garsino
|
Yea I know but I hate it to type that every f****** time.