04.01.2011, 18:37
What the error?
dcmd_settime(playerid,params[]) {
if(!strlen(params)) return SendClientMessage(playerid, 0x00FFFFAA, " /setttime [0-24]");
new time;
format(string,sizeof(string),"time has been changed %d:00-", time);
SendClientMessage(playerid,0x00FFFFAA,string);
new var = strval(params))
if(var > 24) return SendClientMessage(playerid, red, "error:Invalid hour");
return SetPlayerTime(playerid, time, 0);
}
dcmd_settime(playerid,params[]) {
if(!strlen(params)) return SendClientMessage(playerid, 0x00FFFFAA, " /setttime [0-24]");
new time;
format(string,sizeof(string),"time has been changed %d:00-", time);
SendClientMessage(playerid,0x00FFFFAA,string);
new var = strval(params))
if(var > 24) return SendClientMessage(playerid, red, "error:Invalid hour");
return SetPlayerTime(playerid, time, 0);
}