Error without reason - 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: Error without reason (
/showthread.php?tid=616330)
Error without reason -
StR_MaRy - 03.09.2016
Hey guys i have this error but as i see everything is ok , i don't know why i get this warning
the sistem is like this:
Код HTML:
//at the top of the script
new RobSec = 0;
Код HTML:
On a CheckPoint
RobSec = 0;
Код HTML:
Another CheckPoint
RobSec = 0;
Код HTML:
Here is activated for 30 and 60 secconds noisy or silent
for noisy is RobSec = 30; and for silent is RobSec = 60;
can some1 say why i get that error ?
Код HTML:
C:\Users\StR\Desktop\Scripting\snake\gamemodes\server.pwn(13881) : warning 204: symbol is assigned a value that is never used: "RobSec"
Код HTML:
13881 is the last RobSec = 60;
if i delete that line i get error at the next one of
Re: Error without reason -
DarkSkull - 03.09.2016
You're not using the variable anywhere. You're just changing it's values. Remove the variable and your script will run just fine
Re: Error without reason -
StR_MaRy - 03.09.2016
and the variable is ?
Код HTML:
new RobSec = 0;
Re: Error without reason -
DarkSkull - 03.09.2016
Yes, Remove all the RobSec from your script.
Re: Error without reason -
SickAttack - 03.09.2016
It's not an error, it's a warning. You can run your server with warnings.
Just try to fix them. In this case, use the value of that variable or just remove it completely.
Re: Error without reason -
StR_MaRy - 03.09.2016
yes guys , but if i remove those RobSec i wont have a timer on my RobSistem i mean i will kick me off from Rob if i stayed more than 30 or 60 sec but i wont see the timer in my left corner to hurry up or something
Re: Error without reason -
Juvanii - 03.09.2016
This is not an error, it's just a warning to notify you that you're not using this variable anywhere. You still can run your server without issues.
EDIT: Late.
@SickAttack just said it.
Re: Error without reason -
SickAttack - 03.09.2016
Quote:
Originally Posted by StR_MaRy
yes guys , but if i remove those RobSec i wont have a timer on my RobSistem i mean i will kick me off from Rob if i stayed more than 30 or 60 sec but i wont see the timer in my left corner to hurry up or something
|
Negative. Its value is not being used, it has no use in the script atm. Either use its value or remove it completely from the script.