Help: I tried to remove "_" from name. but all chat has been removed.
#4

Quote:
Originally Posted by bathushan
Посмотреть сообщение
pawn Код:
stock strreplace(string[], find, replace)
{
    for(new i=0; string[i]; i++)
    {
        if(string[i] == find)
        {
            string[i] = replace;
        }
    }
    return
}
you mean like this? (help me pls, i'm learning now)
Correct.

pawn Код:
stock strreplace(string[], find, replace)
{
    for(new i=0; string[i]; i++)
    {
        if(string[i] == find)
        {
            string[i] = replace;
        }
    }
    return string;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)