SA-MP Forums Archive
Help needed - 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: Help needed (/showthread.php?tid=503802)



Help needed - FreAkeD - 31.03.2014

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!


Re: Help needed - Sojo12 - 31.03.2014

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?


Re: Help needed - Bingo - 31.03.2014

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

And its warning, Not an error.


Re: Help needed - FreAkeD - 31.03.2014

[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?
....?


Re: Help needed - ChandraLouis - 31.03.2014

Removed


Re: Help needed - RenovanZ - 31.03.2014

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


Re: Help needed - Sojo12 - 31.03.2014

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


Re: Help needed - FreAkeD - 31.03.2014

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.


Re: Help needed - RenovanZ - 31.03.2014

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;
}



Re: Help needed - AhmedMohamed - 31.03.2014

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