symbol is never used: "tmpobjid1" - 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: symbol is never used: "tmpobjid1" (
/showthread.php?tid=589601)
symbol is never used: "tmpobjid1" -
ShiffeyTheGamer - 20.09.2015
symbol is never used: "tmpobjid1"
The line is says is all the way at the bottom of the script on the last line.. All that is there is a }
I am trying to put a textured map in
Re: symbol is never used: "tmpobjid1" -
Jimmi - 20.09.2015
Delete
new tmpobjid1;
Re: symbol is never used: "tmpobjid1" -
SecretBoss - 20.09.2015
Put new
tmpobjid1[number of objects];
in top of the map for ex if you added the map on
gamemodeinit, put this in top of
gamemodeinit
If you have already made the variable there then search for new
tmpobjid1 and remove it
Re: symbol is never used: "tmpobjid1" -
Jastak - 20.09.2015
Add this code in your gm or delete tmpobjid1:
Код:
#pragma unused tmpobjid1
Re: symbol is never used: "tmpobjid1" -
Abagail - 21.09.2015
Quote:
Originally Posted by Jastak
Add this code in your gm or delete tmpobjid1:
Код:
#pragma unused tmpobjid1
|
That may void the warning however it is not good programming practice. If you have a variable declared that isn't being used there is no point at all in having it in your gamemode(commenting it out is a good way to void the warning while keeping it later for reference).