05.04.2019, 14:40
Call only 1 public function instead of this
PHP Code:
new Cig[MAX_PLAYERS];
forward Test(playerid);
forward Test1(playerid);
forward Test2(playerid);
forward Test3(playerid);
CMD:tests(playerid, params[])
{
SetTimerEx("Test", 1000, false, "d", playerid);
return 1;
}
public Test(playerid)
{
SetTimerEx("Test1", 1000, 0, "d", playerid);
return 1;
}
public Test1(playerid)
{
SetTimerEx("Test2", 1000, 0, "d", playerid);
return 1;
}
public Test2(playerid)
{
SetTimerEx("Test3", 1000, 0, "d", playerid);
return 1;
}
public Test3(playerid)
{
Cig[playerid]--;
return 1;
}