I can use this?
#7

Quote:
Originally Posted by XavMartin
Посмотреть сообщение
Код HTML:
SetTimer("OneSecTimer", 1000, true);
Make sure that you are calling the timer every second. You can do that by setting the repeating parameter of the SetTimer function to true.
It is, the timer is in OnGameModeInit().

EDIT(1): I have an idea I will take each function and I'll test it.

EDIT(2): The problem is after these two functions, the timer stops:
Код HTML:
HelperOccupied[helperid] = -1;
NewbieOnHelper[playerid] = -1;
EDIT(3): I install crashdetect and i have some errors:
Код HTML:
[13:44:36] [DEBUG]The countdown is on 60 seconds.
[13:44:36] [DEBUG]Timer works with succesfully.
[13:44:37] [debug] Run time error 4: "Array index out of bounds"
[13:44:37] [debug]  Attempted to read/write array element at negative index -1
[13:44:37] [debug] AMX backtrace:
[13:44:37] [debug] #0 0000d9fc in public OneSecTimer () in nproject.amx
** Can anyone help me, please?
Reply


Messages In This Thread
I can use this? - by qRazor - 29.12.2018, 18:48
Re: I can use this? - by Banditul18 - 29.12.2018, 18:54
Re: I can use this? - by qRazor - 29.12.2018, 19:02
Re: I can use this? - by iorp - 29.12.2018, 19:10
Re: I can use this? - by qRazor - 29.12.2018, 21:50
Re: I can use this? - by XavMartin - 30.12.2018, 00:52
Re: I can use this? - by qRazor - 30.12.2018, 08:09
Re: I can use this? - by qRazor - 30.12.2018, 12:17

Forum Jump:


Users browsing this thread: 2 Guest(s)