SA-MP Forums Archive
[HELP PLEASE] error 035: argument type mismatch (argument 2) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP PLEASE] error 035: argument type mismatch (argument 2) (/showthread.php?tid=619397)



[HELP PLEASE] error 035: argument type mismatch (argument 2) - ReScape - 17.10.2016

return 1;
}

IRP:reportidea(playerid, var[])
{
if(!Logged(playerid)) return NoLogin(playerid);
if(sscanf(var, "s[128]", var)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /reportidea [text]");
if(AntiAdv(playerid, var)) return 1;
if(strlen(var) > 12 return SendClientMessage(playerid, COLOR_GREY, "Maximum characters limit is 128.");
new File: file = fopen("ideas.cfg", io_append), string[128];
format(string, sizeof(string), "[%s] %s\r\n", GetName(playerid), var);
fwrite(file, string);
fclose(file);
SendClientMessage(playerid, COLOR_ORANGE, "Your idea report has been saved, scripters will check it once possible.");
format(string, sizeof(string), "{FF0000}[Admin Warn]{FF6347} %s has reported a idea, /ideas to view it. (Inform Roy about it ASAP)", GetName(playerid));
SendAdminMessage(COLOR_DARKRED, 1, string);
return 1;
}

IRP:reportbug(playerid, var[])
{
if(!Logged(playerid)) return NoLogin(playerid);
if(sscanf(var, "s[128]", var)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /reportbug [text]");
if(AntiAdv(playerid, var)) return 1;
if(strlen(var) > 12 return SendClientMessage(playerid, COLOR_GREY, "Maximum characters limit is 128.");
new File: file = fopen("bug.cfg", io_append), string[128];
format(string, sizeof(string), "[%s] %s\r\n", GetName(playerid), var);
fwrite(file, string);
fclose(file);
SendClientMessage(playerid, COLOR_ORANGE, "Your bug report has been saved, scripters will check it once possible.");
format(string, sizeof(string), "{FF0000}[Admin Warn]{FF6347} %s has reported a bug, /bugs to view it. (Inform Roy about it ASAP)", GetName(playerid));
SendAdminMessage(COLOR_DARKRED, 1, string);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
ERRORS ARE:
_____________________________________
GLRP.pwn(42792) : error 035: argument type mismatch (argument 2)
GLRP.pwn(4280 : error 035: argument type mismatch (argument 2)


2 Errors.


Re: [HELP PLEASE] error 035: argument type mismatch (argument 2) - TaiRinsuru - 17.10.2016

--delete--


Re: [HELP PLEASE] error 035: argument type mismatch (argument 2) - ReScape - 17.10.2016

What do you mean?