SetTimerEx not forwarding the correct playerid.
#2

Hello

I don't understand what you want, but it is this?

pawn Код:
new     Float:x,  // top of GameMode
        Float:y,
        Float:z;

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED( KEY_FIRE ))
    {
        ICDV[playerid] = 2;
        ICD[playerid] = SetTimerEx("ICountDown", 100, false, "d", playerid);
    }
    return 1;
}  

forward ICountDown(playerid);
public ICountDown(playerid)
{
    GetPlayerPos(playerid, x, y, z);
    ICDV[playerid]--;
    {
        new str[128];
        format(str,sizeof(str),"ICDV:%d | playerid:%d", ICDV[playerid], playerid);
        SendClientMessageToAll(0xFFFFFFAA, str);
    }
    if(ICDV[playerid] == 0)
    {
        KillTimer(ICD[playerid]);
    }
    return 1;
}
PT
Reply


Messages In This Thread
SetTimerEx not forwarding the correct playerid. - by techg9 - 27.04.2013, 12:30
Re: SetTimerEx not forwarding the correct playerid. - by PT - 27.04.2013, 13:56
Re: SetTimerEx not forwarding the correct playerid. - by MattyG - 27.04.2013, 14:28
Re: SetTimerEx not forwarding the correct playerid. - by techg9 - 27.04.2013, 14:47

Forum Jump:


Users browsing this thread: 1 Guest(s)