How to improve this code to 1 public function
#1

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(playeridparams[])
{
    
SetTimerEx("Test"1000false"d"playerid);
    return 
1;
}
public 
Test(playerid)
{
    
SetTimerEx("Test1"10000"d"playerid);
    return 
1;
}
public 
Test1(playerid)
{
    
SetTimerEx("Test2"10000"d"playerid);
    return 
1;
}
public 
Test2(playerid)
{
    
SetTimerEx("Test3"10000"d"playerid);
    return 
1;
}
public 
Test3(playerid)
{
    
Cig[playerid]--;
    return 
1;

Reply


Messages In This Thread
How to improve this code to 1 public function - by zowzow - 05.04.2019, 14:40
Re: How to improve this code to 1 public function - by Kaliber - 05.04.2019, 15:04
Re: How to improve this code to 1 public function - by zowzow - 05.04.2019, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)