Error without reason
#1

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
Код HTML:
RobSec = 30;
Reply
#2

You're not using the variable anywhere. You're just changing it's values. Remove the variable and your script will run just fine
Reply
#3

and the variable is ?

Код HTML:
new RobSec = 0;
Reply
#4

Yes, Remove all the RobSec from your script.
Reply
#5

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.
Reply
#6

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
Reply
#7

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.
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)