Help needed
#1

So I get these warnings while I compile my script;
Код:
C:\Users\Adam\Desktop\CTF\gamemodes\mm.pwn(263) : warning 204: symbol is assigned a value that is never used: "minutes"
On line 259 - 267;

pawn Код:
public NewMapTimer(playerid)                      
{
    MapChange++;                                  
    new seconds = CountDownTime % 60;
    new minutes = (CountDownTime - seconds) / 60;                              
    GameTextForAll("~b~ Loading new ~w~MAP",4000,3);
    SetTimer("StartedNewRound",4000,false);      
    return 1;
}
Help would be appreciated, thanks!
Reply
#2

Quote:
Код:
C:\Users\Adam\Desktop\CTF\gamemodes\mm.pwn(263) : warning 204: symbol is assigned a value that is never used: "minutes"
IS this an error?
Reply
#3

Try to comment that line by adding // at starting and then compile.

And its warning, Not an error.
Reply
#4

[quote=Sojo12;2974138]
Quote:
Originally Posted by FreAkeD
Посмотреть сообщение
So I get these errors while I compile my script;
Код:
C:\Users\Adam\Desktop\CTF\gamemodes\mm.pwn(263) : warning 204: symbol is assigned a value that is never used: "minutes"
[/QUTOE]
IS this an error?
....?
Reply
#5

Removed
Reply
#6

'minutes' variable is never used, you must use it, or delete it.
Reply
#7

You said you're getting these errors when you're compiling but your code says a warning
Reply
#8

Quote:
Originally Posted by [vTc]Patroool
Посмотреть сообщение
Try to comment that line by adding // at starting and then compile.

And its warning, Not an error.
Done that, still getting it.
Reply
#9

This one will work..
pawn Код:
public NewMapTimer(playerid)                      
{
    MapChange++;                                  
    /*new seconds = CountDownTime % 60;
    new minutes = (CountDownTime - seconds) / 60;*/
                         
    GameTextForAll("~b~ Loading new ~w~MAP",4000,3);
    SetTimer("StartedNewRound",4000,false);      
    return 1;
}
Reply
#10

Quote:
Originally Posted by Kiyozi_Mu
Посмотреть сообщение
'minutes' variable is never used, you must use it, or delete it.
no he should use it , not must
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)