Quick Question on Timers
#1

When you use SetTimerEx, it returns the ID of the timer created. Do the ID's of timers start at 0, or at 1?
Reply
#2

Why you don't try it with a fast gamemode?
pawn Код:
#include <a_samp>

new timer;

public OnGameModeInit()
{
    new playerid; //To prevent an error while compiling ;)
    timer = SetTimerEx("NonCallback", 5000, true, "i", playerid);
    printf("%d", timer);
    return 1;
}
My result (I forgot to put main() into it)

Код:
1
Script[gamemodes/KRPG.amx]: Runtime error 20: "Invalid index parameter (bad entry point)"
Number of vehicle mods: 0
So it is '1'
Reply
#3

Alright, thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)