error 035: argument type mismatch (argument 1)
#1

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?
Reply
#2

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

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)