12.02.2012, 10:22
Maby change this ?
To this ?
and eventualy this
I am not sure if it works.
pawn Код:
if(pData[playerid][pMins] == 0)
pawn Код:
if(pData[playerid][pMins] == 60)
pawn Код:
public LevelSystem(playerid)
{
pData[playerid][pSeconds] += 1;
if(pData[playerid][pSeconds] == 60)
{
pData[playerid][pSeconds] = 0;
pData[playerid][pMins] += 1;
return 1;
}
if(pData[playerid][pMins] == 60)
{
pData[playerid][pMins] = 0;
pData[playerid][pSeconds] = 0;
pData[playerid][pHours] += 1;
return 1;
}
switch(pData[playerid][pMins])
{
case 1:
{
return SendClientMessage(playerid,color_ibot,"iBot:"#cwhite" Timer system is working good 1 mins ");
}
case 2:
{
SendClientMessage(playerid,color_ibot,"iBot:"#cwhite" Timer system is working good 2 mins ");
return 1;
}
}
return 1;
}