settimer in a callback that uses player definition.
#1

If I use this, the function may not work or generate a bug? I already compile and it did not give me errors, I just want to know if it would give me some bug, or it will not be the right thing, or it is not a recommended way.
I have something like that:

PHP код:
TimerTest[MAX_PLAYERS];
public 
Test_One()
{
TimerTest[playerid] = SetTimer("Test_Two"5000false); //here I do not define the definition of the player
return 1;
}
public 
Test_Two(playerid//definition of the player
{
//code
//Example: Player[playerid][Variable] = 1;
return 1;

Reply


Messages In This Thread
settimer in a callback that uses player definition. - by SapMan - 10.09.2018, 03:47
Re: settimer in a callback that uses player definition. - by Alteh - 10.09.2018, 04:57
Re: settimer in a callback that uses player definition. - by iHollyZinhO - 10.09.2018, 04:58
Re: settimer in a callback that uses player definition. - by Shinja - 10.09.2018, 11:59

Forum Jump:


Users browsing this thread: 1 Guest(s)