07.03.2014, 20:15
How can i increase the limit or to remove ?!
What was the problem : when i type 2 times /tod 1 , after /tod2 got the error.
What was the problem : when i type 2 times /tod 1 , after /tod2 got the error.
pawn Код:
if(strcmp(cmd, "/tod", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, -1, "{00CCFF}(( {FFCC00}Exemplu de folosire:{C0C0C0} /tod (1-23) {00CCFF}))");
return 1;
}
new hour;
hour = strval(tmp);
if (PlayerInfo[playerid][Administrator] >= 1)
{
SetWorldTime(hour);
new string[256];
format(string, sizeof(string), " {00CCFF}(( {FFCC00}Informatie - {FF9930}Worldtime a fost setat la ora %d {00CCFF}))", hour);
SendClientMessage(playerid,-1,string);
}
else
{
SendClientMessage(playerid, -1, "{00CCFF}(( {FFCC00}Informatie - {FF9930}Nu esti autorizat sa folosesti comanda {00CCFF}))");
}
}
return 1;
}