argument type mismatch (argument 2)
#8

all same errors

Код:
public OnPlayerConnect(playerid)
{

 new file[100],Name[MAX_PLAYER_NAME],Ip[16];
GetPlayerName(playerid,Name,sizeof(Name));
GetPlayerIp(playerid,Ip,sizeof(Ip));
format(file,sizeof(file),PlayerFile,Name);
        if(!dini_Exists(file)) {
            dini_Create(file);
                dini_IntSet(file,"Coins", pInfo[playerid][Coins]);
        }
        pInfo[playerid][Coins] = dini_Int(file,"Coins");
        return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
           new file[100],Name[MAX_PLAYER_NAME],Ip[16];
GetPlayerName(playerid,Name,sizeof(Name));
GetPlayerIp(playerid,Ip,sizeof(Ip));
format(file,sizeof(file),PlayerFile,Name);
        dini_IntSet(file,"Coins", pInfo[playerid][Coins]);
	new PlayerName[MAX_PLAYER_NAME], str[128];
	GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
return 1;
}
Код:
GetPlayerName(playerid,Name,sizeof(Name));
this line has the errors
Reply


Messages In This Thread
argument type mismatch (argument 2) - by Alexica721 - 13.09.2013, 12:34
Re: argument type mismatch (argument 2) - by Alexica721 - 13.09.2013, 13:34
Re: argument type mismatch (argument 2) - by Alexica721 - 13.09.2013, 17:28
Re: argument type mismatch (argument 2) - by Alexica721 - 14.09.2013, 05:14
Re: argument type mismatch (argument 2) - by [HK]Ryder[AN] - 14.09.2013, 05:26
Re: argument type mismatch (argument 2) - by DavidLuango - 14.09.2013, 05:45
Re: argument type mismatch (argument 2) - by cray1100 - 14.09.2013, 05:49
Re: argument type mismatch (argument 2) - by Alexica721 - 14.09.2013, 06:40
Re: argument type mismatch (argument 2) - by cray1100 - 14.09.2013, 07:55
Re: argument type mismatch (argument 2) - by Alexica721 - 14.09.2013, 08:15

Forum Jump:


Users browsing this thread: 1 Guest(s)