Jólvan ne haragudj...
te a fa**ért adsz nekem mínuszt? -.-
azért, mert kijavítalak? -.-
gratulálok....érett viselkedés...
egyébként meg...
#define fourhour 4*60*60 //14400
CMD:last(playerid, params[])
{
new hour, mins, secs, asd1, asd2, asd3;
if(GetPVarInt(playerid, \"LevelUp\") >= 2)
{
asd1 = GetPVarInt(playerid, \"LevelUp\") * fourhour;
asd2 = GetPVarInt(playerid, \"GameTime\") - asd1;
asd3 = fourhour - asd2;
hour = asd3/3600;
mins = (asd3 - 10800)/60;
secs = (asd3 - 10800) - (mins * 60);
}else
{
asd1 = GetPVarInt(playerid, \"LevelUp\")+1 * fourhour;
asd2 = (GetPVarInt(playerid, \"GameTime\"));
asd3 = fourhour - asd2;
hour = asd3/3600;
mins = (asd3-(hour*3600))/60;
secs = (asd3-(hour*3600)) - (mins * 60);
}
new string[256];
format(string, sizeof(string), \"Eredmény: %d óra, %d perc, %d másodperc\", hour, mins, secs);
SendClientMessage(playerid, -1, string);
return 1;
}