Checking time left in settimerex.
#6

Quote:
Originally Posted by Scottas
Посмотреть сообщение
because TimeUnMute is only a handler (that's what SetTimerEx returs), not a some kind of counter.
pawn Код:
new TimeUnMute[MAX_PLAYERS]
       MuteStart[MAX_PLAYERS];

TimeUnMute[playerid] = SetTimerEx("MuteEnd", 30000, false, "dd", playerid);
MuteStart[playerid] = GetTickCount();

if(InMute[playerid] == 1) return SendFormatMessage(playerid, red, "You can talk more %d seconds",(GetTickCount()-MuteStart[playerid])/1000),0;
Still dont work.
Reply


Messages In This Thread
Checking time left in settimerex. - by WildWave - 20.07.2014, 06:57
Re: Checking time left in settimerex. - by GeekSiMo - 20.07.2014, 07:15
Re: Checking time left in settimerex. - by WildWave - 20.07.2014, 19:05
Re: Checking time left in settimerex. - by Scottas - 20.07.2014, 19:45
Re: Checking time left in settimerex. - by WildWave - 20.07.2014, 21:00
Re: Checking time left in settimerex. - by WildWave - 20.07.2014, 21:04
Re: Checking time left in settimerex. - by Jefff - 20.07.2014, 22:04

Forum Jump:


Users browsing this thread: 2 Guest(s)