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=577138)
Error 035: argument type mismatch (argument 1) -
VladimirMark - 09.06.2015
I get this error while compiling the script and can't find something about this error...
Код:
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(12893) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(14374) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(14457) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(14565) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(15945) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(16034) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(16107) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(16181) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(16271) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(16378) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(16445) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(16501) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(16553) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(16637) : error 035: argument type mismatch (argument 1)
C:\Users\Vlad\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(16720) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(16803) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(16885) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(16975) : error 035: argument type mismatch (argument 1)
C:\Users\Vlad\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(17065) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(17148) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(17233) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(17309) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(17378) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(17455) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(17661) : error 035: argument type mismatch (argument 1)
C:\Users\.\Desktop\New folder (2)\Other-CNR\gamemodes\cnr.pwn(17768) : error 035: argument type mismatch (argument 1)
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
Line 12893:
Код:
if(!isNumeric(tmp))
{
giveplayerid = ReturnUser(playerid, tmp); <<<< LINE 12893
if(giveplayerid == INVALID_PLAYER_ID)
{
return 1;
}
}
else
{
giveplayerid = strval(tmp);
if(!IsPlayerConnected(giveplayerid))
{
format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
SendClientMessage(playerid, COLOR_ERROR, string);
return 1;
}
}
}
Line 14374:
Код:
dcmd_complain(playerid, params[])
{
new idx,id,giveplayerid,string[256],tmp[256],cmd[256],message[256];
tmp = strtok(params, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_ERROR, "USAGE: /complain (Name/Id) (complaint)");
return 1;
}
if(!isNumeric(tmp))
{
giveplayerid = ReturnUser(playerid, tmp); <<< LINE 14374
if(giveplayerid == INVALID_PLAYER_ID)
{
return 1;
}
}
else
{
giveplayerid = strval(tmp);
if(!IsPlayerConnected(giveplayerid))
{
format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
SendClientMessage(playerid, COLOR_ERROR, string);
return 1;
}
}
Other lines are similar
AW: Error 035: argument type mismatch (argument 1) -
Kaliber - 09.06.2015
Go in the Menu to Edit-Replace:
And Replace in the whole script, it to this: ReturnUser(tmp);