19.08.2012, 13:21
Because obviusly this function has 3 arguments,and its correct format is:
So basically you only need to change the function line in your command,and it should look like this:
pawn Код:
SetPlayerTime(playerid,hour,minute);
pawn Код:
CMD:settime( playerid, params[ ] )
{
new time;
if( sscanf( params, "i", time ) ) return SendClientMessage( playerid, 0xFFFFFFFF, "{FFFF00}Usage: /settime <0-24>" );
if( time > 24 || time < 0 ) return SendClientMessage( playerid, 0xFFFFFFFF, "{FFFF00}Available Hours: 0-24" );
SetPlayerTime(playerid,time,0 );
return 1;
}