04.08.2013, 09:29
(
Last edited by Smokeyy; 06/08/2013 at 01:19 PM.
)
Hello, SA-MP Forums, i am new here. Today i'm gonna show you my method to use SetTimerEx with strings. SetTimerEx by default doesn't work with strings but there are a lot of methods. This is the tutorial, please correct me if i am wrong with something:
1. You get the function that you'r gonna use for SetTimerEx, and then put in in a public like that:
2. You insert an SetTimer where you want that SetTimerEx to be just like that:
3. That's all, i hope that tutorial is usefull for newbie's and again, please correct me if i am wrong with something.
1. You get the function that you'r gonna use for SetTimerEx, and then put in in a public like that:
pawn Code:
forward MyFunction();
public MyFunction()
{
MyFunctionThatIUseWithSetTimerEx(parameters here);
}
pawn Code:
// Somewhere in the gamemode.
SetTimer("MyFunction", 5000, 0);