Problems With Timer
#1

Hello, Every One
i Have Problems Today Timer Showing only its Stop in 10Sec not 9sec 8sec..... to out from jail please help
Quote:

new PlayerSeconds[MAX_PLAYERS] = 10;

PHP код:
new string[24];
format(string,sizeof(string),"00:%d",PlayerSeconds[playerid]);
TextDrawSetString(JailTimer3,string); 
this for textdraw defnce
Quote:

new Text:JailTimer3;

this textdraw
PHP код:
    JailTimer3 TextDrawCreate(554.000000376.000000"00:00");
    
TextDrawBackgroundColor(JailTimer3255);
    
TextDrawFont(JailTimer31);
    
TextDrawLetterSize(JailTimer30.3200001.000000);
    
TextDrawColor(JailTimer310027263);
    
TextDrawSetOutline(JailTimer30);
    
TextDrawSetProportional(JailTimer31);
    
TextDrawSetShadow(JailTimer31); 
why its Counting Descending !
Please Help +Rep
Reply
#2

this my code
PHP код:
forward Unjail(playerid);
public 
Unjail(playerid)
{
new 
string[24];
format(string,sizeof(string),"00:%d",PlayerSeconds[playerid]);
TextDrawSetString(JailTimer3,string);
SetPlayerPos(playerid,-1753.6743,885.2703,295.8750);
return 
1;

this in command arrest its showing textdraw and timer
its showing textdraw and Timer
Quote:

TextDrawShowForPlayer(playerid, JailTimer0);
TextDrawShowForPlayer(playerid, JailTimer1);
TextDrawShowForPlayer(playerid, JailTimer2);
TextDrawShowForPlayer(playerid, JailTimer3);
TextDrawShowForPlayer(playerid, JailTimer4);
SetTimerEx("Unjail", 60000, 1, "i", playerid);// 1 second = 1000(milliseconds)

Thanks, For Reply
Reply
#3

Help Please
Reply
#4

You need to keep updating the textdraw in order for it to show the countdown, take a look at other countdown scripts and get something from there, instead of asking for help everytime... try using the search function and actually learn something
Reply
#5

Quote:
Originally Posted by MikeEd
Посмотреть сообщение
You need to keep updating the textdraw in order for it to show the countdown, take a look at other countdown scripts and get something from there, instead of asking for help everytime... try using the search function and actually learn something
today i try searching this tut timer showing + timer down
and i search today much cant get somthings new
to i try in script help Here
Reply
#6

Help Please
Reply
#7

Help Please !
Reply
#8

You have forgotten to call the function you have to use SetTimerEx or SetTimer somewhere.

https://sampwiki.blast.hk/wiki/SetTimer
Reply
#9

He does have a timer function but he wajts to make the timer visible.
Reply
#10

Yeah... Oh I missed that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)