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=445431)



error 035: argument type mismatch (argument 1) - Extasy4 - 21.06.2013

Hi!

I'm doing some work based on this topic. But I got the error above for this line:
Код:
new INI:File = INI_Open(PlayerInfo(lestring));
the string:
Код:
new lestring[85];
Can anyone help me?


Re: error 035: argument type mismatch (argument 1) - MP2 - 21.06.2013

Show the entire PlayerInfo function. It needs to return an array (string).


Re: error 035: argument type mismatch (argument 1) - Extasy4 - 21.06.2013

Here it is:

Код:
stock PlayerInfo(playerid)
{
	new string[128],playername[MAX_PLAYER_NAME];
	GetPlayerName(playerid,playername,sizeof(playername));
	format(string,sizeof(string),USER_PATH,playername);
	return string;
}