ZCMD Command
#5

1 Error
pawn Код:
error 035: argument type mismatch (argument 2)
pawn Код:
CMD:time(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, -1, "[ERROR]: Syntax: /Time [0-24]");
    if(strval(params) > 24 || strval (params) < 0) return SendClientMessage(playerid -1, "[ERROR]: 0 - 24");//This Line
    SetPlayerTime(playerid,strval(params), 0);
    SetPlayerTime(playerid,strval(params), 1);
    SetPlayerTime(playerid,strval(params), 2);
    SetPlayerTime(playerid,strval(params), 3);
    SetPlayerTime(playerid,strval(params), 4);
    SetPlayerTime(playerid,strval(params), 5);
    SetPlayerTime(playerid,strval(params), 6);
    SetPlayerTime(playerid,strval(params), 7);
    SetPlayerTime(playerid,strval(params), 8);
    SetPlayerTime(playerid,strval(params), 9);
    SetPlayerTime(playerid,strval(params), 10);
    SetPlayerTime(playerid,strval(params), 11);
    SetPlayerTime(playerid,strval(params), 12);
    SetPlayerTime(playerid,strval(params), 13);
    SetPlayerTime(playerid,strval(params), 14);
    SetPlayerTime(playerid,strval(params), 15);
    SetPlayerTime(playerid,strval(params), 16);
    SetPlayerTime(playerid,strval(params), 17);
    SetPlayerTime(playerid,strval(params), 18);
    SetPlayerTime(playerid,strval(params), 19);
    SetPlayerTime(playerid,strval(params), 20);
    SetPlayerTime(playerid,strval(params), 21);
    SetPlayerTime(playerid,strval(params), 22);
    SetPlayerTime(playerid,strval(params), 23);
    SetPlayerTime(playerid,strval(params), 24);
    return 1;
}
Edit: You forgot the comma ","
pawn Код:
playerid -1,
Instead of
pawn Код:
playerid, -1,
Reply


Messages In This Thread
ZCMD Command - by Kostas' - 11.11.2011, 17:48
Re: ZCMD Command - by SmiT - 11.11.2011, 17:51
Re: ZCMD Command - by Kostas' - 11.11.2011, 17:56
Re: ZCMD Command - by SmiT - 11.11.2011, 17:59
Re: ZCMD Command - by Kostas' - 11.11.2011, 18:08
Re: ZCMD Command - by IstuntmanI - 11.11.2011, 18:19
Re: ZCMD Command - by Kostas' - 11.11.2011, 18:21
Re: ZCMD Command - by Rudo2 - 11.11.2011, 18:23
Re: ZCMD Command - by Kostas' - 11.11.2011, 18:28

Forum Jump:


Users browsing this thread: 1 Guest(s)