SA-MP Forums Archive
error 035: argument type mismatch (argument 1) - 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: error 035: argument type mismatch (argument 1) (/showthread.php?tid=580843)



error 035: argument type mismatch (argument 1) - PiLLoW - 08.07.2015

Quote:

dcmd_crimes(playerid, params[])
{
#pragma unused params

if (PlayerInfo[playerid][pSpawn] == 1){

if (PlayerInfo[playerid][pTeam] == TEAM_CIVILIAN){

new string[256],Wanted[128],idx,giveplayerid,tmp[256];


tmp = strtok(params, idx);
if(!strlen(tmp))
{
//SendClientMessage(playerid, COLOR_ERROR, "USAGE: /crimes (Name/Id).");
//return 1;
giveplayerid = playerid;
}else{

if(!isNumeric(tmp))
{
giveplayerid = ReturnUser(playerid, tmp);
if(giveplayerid == INVALID_PLAYER_ID)
{
return 1;
}
}

Any Help to fix this argument type mismatch!!!

Quote:

giveplayerid = ReturnUser(playerid, tmp);

Here's the Line that should be the problem


AW: error 035: argument type mismatch (argument 1) - Kaliber - 08.07.2015

Write it just like this:

PHP код:
giveplayerid ReturnUser(tmp); 



Re: error 035: argument type mismatch (argument 1) - PiLLoW - 08.07.2015

You mean i need to replace?


AW: error 035: argument type mismatch (argument 1) - Kaliber - 08.07.2015

Yes


Re: error 035: argument type mismatch (argument 1) - PiLLoW - 08.07.2015

Thank you so much Kaliber