[Scripting Problem] Warning on Pawno: NAMEGET(playerid)
#1

Hello dear Scripters! I've got a little problem with Pawno! Here's the piece of code:
Код:
SendClientMessage(playerid, COLOR_BLUE, "Esi sveicināts Defaq %s!",NAMEGET(playerid));
And here's the NameGet stock function:
Код:
stock NAMEGET(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    for(new i = 0; i < MAX_PLAYER_NAME; i++)
    {
        if(name[i] == '_') name[i] = ' ';
    }
    return name;
}
Finally the warning:
Код:
warning 202: number of arguments does not match definition
I have no clue what's the problem!
Reply


Messages In This Thread
[Scripting Problem] Warning on Pawno: NAMEGET(playerid) - by MaxTuner - 06.08.2014, 12:34
Re: [Scripting Problem] Warning on Pawno: NAMEGET(playerid) - by SpikY_ - 06.08.2014, 12:39
Re: [Scripting Problem] Warning on Pawno: NAMEGET(playerid) - by Threshold - 06.08.2014, 12:40
Re: [Scripting Problem] Warning on Pawno: NAMEGET(playerid) - by MaxTuner - 06.08.2014, 12:48

Forum Jump:


Users browsing this thread: 2 Guest(s)