01.12.2012, 07:27
Wrong
pawn Код:
COMMAND:mytime(playerid, params[])
{
new time;//Time is not an array.
if(sscanf(params, "i", time)) return SendClientMessage(playerid, -1, "{FF0000}[USAGE]: {FFFFFF}/mytime [Time]");
if(time > 24 || time < 0) return SendClientMessage(playerid, -1, "{FF0000}[SERVER]: {FFFFFF}Invalid Time! Choose Another!");
SetPlayerTime(playerid,time,0);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
return 1;
}