View Single Post
Old 28/03/2011, 12:25 PM   #2
antonio112
High-roller
 
antonio112's Avatar
 
Join Date: Aug 2009
Location: Romania
Posts: 974
Reputation: 87
Default Re: Ore,minute,secunde

Hm, singura solutie la care ma pot gandi acum, este urmatoarea:

Faci in felul urmator:
pawn Code:
new OreOn[MAX_PLAYERS];
new SecundeOn[MAX_PLAYERS];

pawn Code:
public public OnPlayerConnect(playerid)
{
        SetTimerEx("OreOn", (1000 * 60) * 60, true, "i", playerid);
        SetTimerEx("SecundeOn", 1000, true, "i", playerid);
    return 1;
}

pawn Code:
forward OreOn(playerid);
public OreOn(playerid)
{
       OreOn[playerid] +=;
}
 
forward SecundeOn(playerid);
public SecundeOn(playerid)
{
      SecundeOn[playerid] +=;
}

Eh, ma rog ... nu stiu daca e perfect 100% dar ar trebui sa mearga. Cu salvatul, va trebui sa te descurci tu.
__________________
antonio112 is offline