How to improve this code to 1 public function
#2

//Edit: My bad hahaha xD

Wanted to say, there are a lot of ways


PHP Code:
new Cig[MAX_PLAYERS];
forward Test(playerid,x);
CMD:tests(playeridparams[])
{
    
SetTimerEx("Test"1000false"dd"playerid,0);
    return 
1;
}
public 
Test(playerid,x)
{
    switch(
x)
    {
        case 
0SetTimerEx("Test"10000"dd"playerid,1);
        case 
1SetTimerEx("Test"10000"dd"playerid,2);
        case 
2Cig[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)