Argument type mismatch (argument 2)
#1

Hi, I've used this code:

Код:
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;
}
And I'm getting this error:

Код:
C:\Users\Yakir\Desktop\The Best Server\gamemodes\GM.pwn(310) : error 035: argument type mismatch (argument 2)
Help will be appreciated.
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: 2 Guest(s)