Argument type mismatch (argument 2)
#7

Ok, I'll show ya but first I'll add another code I forgot to show ya, lol.

Ok so that's the original code:

Код:
stock GetName(playerid)
{
    new szName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, szName, sizeof(szName));
    return szName;
}

stock strreplace(string[], find, replace)
{
    for(new i=0; string[i]; i++)
    {
        if(string[i] == find)
        {
            string[i] = replace;
        }
    }
}

stock GetName(playerid)
{
    new
        name[24];
    GetPlayerName(playerid, name, sizeof(name));
    strreplace(name, "_", " ");
    return name;
}
The two errors:
Код:
C:\Users\Yakir\Desktop\The Best Server\gamemodes\GM.pwn(313) : error 021: symbol already defined: "GetName"
C:\Users\Yakir\Desktop\The Best Server\gamemodes\GM.pwn(317) : error 035: argument type mismatch (argument 2)
And line 313 = "{" which is under: "stock GetName(playerid)"
Line 317 = strreplace(name, "_", " ");
Reply


Messages In This Thread
Argument type mismatch (argument 2) - by Ghost252 - 28.10.2012, 19:52
Re: Argument type mismatch (argument 2) - by HyDrAtIc - 28.10.2012, 19:54
Re: Argument type mismatch (argument 2) - by Ghost252 - 28.10.2012, 19:58
Re: Argument type mismatch (argument 2) - by HyDrAtIc - 28.10.2012, 19:59
Re: Argument type mismatch (argument 2) - by gtakillerIV - 28.10.2012, 19:59
Re: Argument type mismatch (argument 2) - by IstuntmanI - 28.10.2012, 19:59
Re: Argument type mismatch (argument 2) - by Ghost252 - 28.10.2012, 20:03
Re: Argument type mismatch (argument 2) - by HyDrAtIc - 28.10.2012, 20:05
Re: Argument type mismatch (argument 2) - by PrawkC - 28.10.2012, 20:05
Re: Argument type mismatch (argument 2) - by PrawkC - 28.10.2012, 20:37

Forum Jump:


Users browsing this thread: 1 Guest(s)