error 035: argument type mismatch
#5

C:\Users\Chelsea\Desktop\iwrp\iwrp.pwn(613) : error 035: argument type mismatch (argument 3)
Lines: 308 to 319
pawn Код:
stock NameL(playerid)
{
    //new pName[MAX_PLAYER_NAME];
    new name[MAX_PLAYER_NAME];

    GetPlayerName(playerid, "CharUsername",name,MAX_PLAYER_NAME);
    for(new i = 0; i < MAX_PLAYER_NAME; i++)
    {
        if(name[i] == '_') name[i] = ' ';
    }
    return name;
}
pawn Код:
stock NameL(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, "CharUsername",name ,MAX_PLAYER_NAME);
    //GetPlayerName(playerid, "CharUsername",name,sizeof(name));
    for(new i = 0; i < MAX_PLAYER_NAME; i++)
    {
        if(name[i] == '_') name[i] = ' ';
    }
    return name;
}
Tried to do this and its not working
Reply


Messages In This Thread
error 035: argument type mismatch - by DavidGravelli - 25.06.2017, 20:28
Re: error 035: argument type mismatch - by HoussemGaming - 25.06.2017, 20:37
Re: error 035: argument type mismatch - by DavidGravelli - 25.06.2017, 20:38
Re: error 035: argument type mismatch - by Vince - 25.06.2017, 20:44
Re: error 035: argument type mismatch - by DavidGravelli - 25.06.2017, 20:48
Re: error 035: argument type mismatch - by Dayrion - 25.06.2017, 21:37

Forum Jump:


Users browsing this thread: 1 Guest(s)