03.01.2011, 10:37
What's the error?
dcmd_mytime(playerid,params[]) {
new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
if(!strlen(params) || !IsNumeric(tmp2)) return SendClientMessage(playerid, red, " /settime [hour]");
new player1 = strval(tmp), time = strval(tmp2), string[128];
if(IsPlayerConnected(player1)) {
PlayerPlaySound(player1,1057,0.0,0.0,0.0);
return SetPlayerTime(player1, time, 0);
}
}
dcmd_mytime(playerid,params[]) {
new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
if(!strlen(params) || !IsNumeric(tmp2)) return SendClientMessage(playerid, red, " /settime [hour]");
new player1 = strval(tmp), time = strval(tmp2), string[128];
if(IsPlayerConnected(player1)) {
PlayerPlaySound(player1,1057,0.0,0.0,0.0);
return SetPlayerTime(player1, time, 0);
}
}