16.09.2014, 16:55
Hello, Every One i Hate Problems Timer
This Error Problems
This All Timer
and this on top
and this in Command Arresting
Please Help +Rep
Thanks For All,
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" |
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;
}
Quote:
new PlayerSeconds[MAX_PLAYERS] = 10; new PlayerTimer[MAX_PLAYERS]; //This is used to store the timer id. SetTimerEx(..); |
Quote:
PlayerSeconds[playerid] = 10;//Just to make sure its 10 seconds. PlayerTimer[playerid] = SetTimerEx("JailTimer",1000,true,"i",playerid); |
Thanks For All,