/settime command
#7

Because obviusly this function has 3 arguments,and its correct format is:
pawn Код:
SetPlayerTime(playerid,hour,minute);
So basically you only need to change the function line in your command,and it should look like this:
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;
}
Reply


Messages In This Thread
/settime command - by kbalor - 19.08.2012, 09:03
Re: /settime command - by avivelkayam - 19.08.2012, 10:38
Re: /settime command - by NinjaChicken - 19.08.2012, 10:52
Re: /settime command - by avivelkayam - 19.08.2012, 11:28
Re: /settime command - by kbalor - 19.08.2012, 13:18
Re: /settime command - by [MK]Man_Deep - 19.08.2012, 13:19
Re: /settime command - by Cjgogo - 19.08.2012, 13:21
Re: /settime command - by Sandiel - 19.08.2012, 13:36
Re: /settime command - by avivelkayam - 19.08.2012, 14:30
Re: /settime command - by leonardo1434 - 19.08.2012, 14:38

Forum Jump:


Users browsing this thread: 1 Guest(s)