[HELP] RemoveUnderScore
#3

Quote:
Originally Posted by Claude
Посмотреть сообщение
Use the first one if you use ReturnUser, second if not
pawn Код:
stock RemoveUnderScore(playerid, target)
{
    new targetid = ReturnUser(target);
    new name[MAX_PLAYER_NAME], targetname[MAX_PLAYER_NAME];
    GetPlayerName(targetid, targetname, sizeof targetname);
    GetPlayerName(playerid,name,sizeof(name));
    for(new i = 0; i < MAX_PLAYER_NAME; i++)
    {
        if(name[i] == '_') name[i] = ' ';
        if(targetname[i] == '_') targetname[i] = ' ';
    }
    return name, targetname;
}

pawn Код:
stock RemoveUnderScore(playerid, target)
{
    new targetid = strval(target);
    new name[MAX_PLAYER_NAME], targetname[MAX_PLAYER_NAME];
    GetPlayerName(targetid, targetname, sizeof targetname);
    GetPlayerName(playerid,name,sizeof(name));
    for(new i = 0; i < MAX_PLAYER_NAME; i++)
    {
        if(name[i] == '_') name[i] = ' ';
        if(targetname[i] == '_') targetname[i] = ' ';
    }
    return name, targetname;
}
Over 50 number of arguments does not match definition, one argument type mismatch (argument 1) and a symbol is never used: "target". When I'm using this, I put RemoveUnderScore(playerid) as you can see on my example, can taht be the reason, do I have to use another code? And yes, I'm using ReturnUser.
Reply


Messages In This Thread
[HELP] RemoveUnderScore - by Fredden1993 - 30.08.2010, 14:14
Re: [HELP] RemoveUnderScore - by Claude - 30.08.2010, 14:26
Re: [HELP] RemoveUnderScore - by Fredden1993 - 30.08.2010, 14:30
Re: [HELP] RemoveUnderScore - by Fredden1993 - 30.08.2010, 14:51
Re: [HELP] RemoveUnderScore - by [XST]O_x - 30.08.2010, 14:54
Re: [HELP] RemoveUnderScore - by Fredden1993 - 30.08.2010, 15:08
Re: [HELP] RemoveUnderScore - by Fredden1993 - 30.08.2010, 15:23
Re: [HELP] RemoveUnderScore - by Bumbis - 30.08.2010, 16:18
Re: [HELP] RemoveUnderScore - by Fredden1993 - 30.08.2010, 16:30
Re: [HELP] RemoveUnderScore - by Bumbis - 30.08.2010, 16:32

Forum Jump:


Users browsing this thread: 2 Guest(s)