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

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

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

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

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