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



error 035: argument type mismatch (argument 1 & 2) - WhiteAngels - 12.06.2014

How to fix this errors ??

Lines 2785-2786:
Код:
						GetPlayerName(playerid, name, sizeof (name));
						if (!strcmp(name, string[stringPos], true, id))
Errors :

Quote:

G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(2785) : error 035: argument type mismatch (argument 2)
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(2785) : error 035: argument type mismatch (argument 2)
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(2786) : error 035: argument type mismatch (argument 1)




Re: error 035: argument type mismatch (argument 1 & 2) - Rittik - 12.06.2014

Код:
GetPlayerName(playerid, name, sizeof (name));
if (!strcmp(name, string[stringPos], true))



Re: error 035: argument type mismatch (argument 1 & 2) - WhiteAngels - 12.06.2014

Quote:
Originally Posted by Rittik
Посмотреть сообщение
Код:
GetPlayerName(playerid, name, sizeof (name));
if (!strcmp(name, string[stringPos], true))
Quote:

G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(2785) : error 035: argument type mismatch (argument 2)
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(2785) : error 035: argument type mismatch (argument 2)
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(2786) : error 035: argument type mismatch (argument 1)

Still Errors


Re: error 035: argument type mismatch (argument 1 & 2) - Rittik - 12.06.2014

Do you have this in your code. if no then please add the below code under the command which you were getting errors :
Код:
new name[MAX_PLAYER_NAME+1];



Re: error 035: argument type mismatch (argument 1 & 2) - iFiras - 12.06.2014

How are you defining the variable "string"?


Quote:
Originally Posted by Rittik
Посмотреть сообщение
Do you have this in your code. if no then please add the below code under the command which you were getting errors :
Код:
new name[MAX_PLAYER_NAME+1];
He probably has it because if he didn't, it would give him undefined symbols errors then argument thing comes.


Re: error 035: argument type mismatch (argument 1 & 2) - WhiteAngels - 12.06.2014

Quote:
Originally Posted by Rittik
Посмотреть сообщение
Do you have this in your code. if no then please add the below code under the command which you were getting errors :
Код:
new name[MAX_PLAYER_NAME+1];
Thanks its Worked


Re: error 035: argument type mismatch (argument 1 & 2) - Rittik - 12.06.2014

Quote:
Originally Posted by iFiras
Посмотреть сообщение
How are you defining the variable "string"?



He probably has it because if he didn't, it would give him undefined symbols errors then argument thing comes.
@iFiras: I guess, it worked for him.

@WhiteAngel: Welcome.