Heo - 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: Heo (
/showthread.php?tid=176940)
Heo -
odlemoreten - 15.09.2010
Im getting a Warning on this
Код:
new expamount = nxtlevel*levelexp;
Код:
C:\Users\RЖV\Documents\Mine mottatte filer\penls.pwn(38542) : warning 204: symbol is assigned a value that is never used: "expamount"
Re: Heo -
Mauzen - 15.09.2010
This means that you do not use the variable yet. If you add for example printf("Exp: %d", expamount) after this, the variable is used and the warning disappears.
But in most cases you can just ignore warnings.
Re: Heo -
DarrenReeder - 15.09.2010
Its fine, its just a warning...telling you that you created this variable called "expamount" but you never used it in the script...
once you use "expamount" somewhere, the warning will go...
REMEMBER: "warnings" do not effect the script compileing, it just "warns" you....
"errors" stop the script from compileing...
This forum requires that you wait 120 seconds between posts. Please try again in 11 seconds.