[HELP]setmytime
#1

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);

}
Reply


Messages In This Thread
[HELP]setmytime - by buzifej - 04.01.2011, 18:37
Re: [HELP]setmytime - by Kwarde - 04.01.2011, 18:40
Re: [HELP]setmytime - by Sascha - 04.01.2011, 19:55
Re: [HELP]setmytime - by Kwarde - 04.01.2011, 20:13

Forum Jump:


Users browsing this thread: 2 Guest(s)