Timer Error :(
#1

Hello, Every One i Hate Problems Timer
This Error Problems
Quote:

C:\Documents and Settings\000\Desktop\samp03z_svr_R1_win32\pawno\in clude\sscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\000\Desktop\samp03z_svr_R1_win32\pawno\in clude\sscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\000\Desktop\samp03z_svr_R1_win32\pawno\in clude\sscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\000\Desktop\samp03z_svr_R1_win32\pawno\in clude\sscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\000\My Documents\ffff\gamemodes\barron.pwn(683) : error 055: start of function body without function header
C:\Documents and Settings\000\My Documents\ffff\gamemodes\barron.pwn(686) : error 021: symbol already defined: "format"
C:\Documents and Settings\000\My Documents\ffff\gamemodes\barron.pwn(689) : error 010: invalid function or declaration
C:\Documents and Settings\000\My Documents\ffff\gamemodes\barron.pwn(693) : error 010: invalid function or declaration
C:\Documents and Settings\000\My Documents\ffff\gamemodes\barron.pwn(695) : warning 203: symbol is never used: "string"

This All Timer
PHP код:
forward JailTimer(playerid);
public 
JailTimer(playerid);
{
    
PlayerSeconds[playerid] --;//The timer get called every 1 second. so we will decrease his variable - 1 every second.
    
new string[24];
    
format(string,sizeof(string),"00:0%d",PlayerSeconds[playerid]);
    
TextDrawSetString(JailTimer3[playerid],string);
    
GivePlayerMoney(playerid,-200);//So you will take $200 from him everytime.
    
if(PlayerSeconds[playerid] <= 0)//If the jail time ends.
    
{
        
KillTimer(PlayerTimer[playerid]);//Here we will stop the timer from getting called.
    
}
    return 
true;

and this on top
Quote:

new PlayerSeconds[MAX_PLAYERS] = 10;
new PlayerTimer[MAX_PLAYERS]; //This is used to store the timer id. SetTimerEx(..);

and this in Command Arresting
Quote:

PlayerSeconds[playerid] = 10;//Just to make sure its 10 seconds.
PlayerTimer[playerid] = SetTimerEx("JailTimer",1000,true,"i",playerid);

Please Help +Rep
Thanks For All,
Reply


Messages In This Thread
Timer Error :( - by FisherMan - 16.09.2014, 16:55
Re: Timer Error :( - by Jacapo - 16.09.2014, 17:56
Re: Timer Error :( - by FisherMan - 16.09.2014, 18:06
Re: Timer Error :( - by Jacapo - 16.09.2014, 18:11
Re: Timer Error :( - by FisherMan - 16.09.2014, 18:26
Re: Timer Error :( - by Jacapo - 16.09.2014, 18:30
Re: Timer Error :( - by FisherMan - 16.09.2014, 18:38
Re: Timer Error :( - by Jacapo - 16.09.2014, 18:44
Re: Timer Error :( - by FisherMan - 16.09.2014, 18:57
Re: Timer Error :( - by Jacapo - 16.09.2014, 19:00

Forum Jump:


Users browsing this thread: 1 Guest(s)