View Single Post
Old 28/03/2011, 04:36 PM   #6
Zh3r0
Godfather
 
Join Date: Mar 2008
Posts: 5,438
Reputation: 398
Default Re: Ore,minute,secunde

Quote:
Originally Posted by antonio112 View Post
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.
Sti ca codul tau nare sens? Secundele pot trece de 60 ...iar ora se updateaza abea peste o ora, deci ala daca iese din ora-n ora, nu face nimica!
__________________
Zh3r0 is offline