25.01.2015, 18:46
I keep getting this error, and am unsure on how to fix it. "C:\Users\Oli\Desktop\samp scripts\gangwars\gamemodes\gangwar.pwn(204) : error 035: argument type mismatch (argument 2)", the line that the error is coming from is this:
command(helpme, playerid, params[])
{
new help[255], string[128];
if(sscanf(params, "z", help))
{
SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /helpme [message]");
}
else
{
format(string, sizeof(string), "{FE2EC8}[HELP]: {FFFFFF}%s (%d){FE2EC8}: %s", playerid, help);
SendToStaff(COLOR_PINK, string);
SendClientMessage(playerid, YELLOW, "Your question was sent to the Staff team, await a reply.");
}
return 1;
}
Thanks.
command(helpme, playerid, params[])
{
new help[255], string[128];
if(sscanf(params, "z", help))
{
SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /helpme [message]");
}
else
{
format(string, sizeof(string), "{FE2EC8}[HELP]: {FFFFFF}%s (%d){FE2EC8}: %s", playerid, help);
SendToStaff(COLOR_PINK, string);
SendClientMessage(playerid, YELLOW, "Your question was sent to the Staff team, await a reply.");
}
return 1;
}
Thanks.