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 ","
Instead of