SetTimerEx Possible to send checkpoint id
#9

It is possible to send multiple parameters using SetTimerEx. Checkpoint ID can be specified as a parameter while setting a timer, also it's data type should be filled on specifier.

pawn Код:
SetTimerEx("cptimer", 1000, false, "ii", playerid, cpid);

forward cptimer(playerid, cpid);
public cptimer(playerid, cpid)
{
    //cpid can be used as the checkpoint ID
    return 1;
}
You can also pass other data types, you can have a look at : https://sampwiki.blast.hk/wiki/SetTimerEx
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)