Problem with a stock
#1

pawn Код:
stock strreplace(string[], find, replace)
{
    for(new i=0; string[i]; i++)
    {
        if(string[i] == find)
        {
            string[i] = replace;
        }
    }
}
That's the stock.

pawn Код:
C:\Documents and Settings\Dimitar\Desktop\samp03e_svr_win32\gamemodes\EsRp.pwn(97) : error 025: function heading differs from prototype
C:\Documents and Settings\Dimitar\Desktop\samp03e_svr_win32\gamemodes\EsRp.pwn(98) : error 021: symbol already defined: "strreplace"
C:\Documents and Settings\Dimitar\Desktop\samp03e_svr_win32\gamemodes\EsRp.pwn(106) : warning 209: function "strreplace" should return a value
C:\Documents and Settings\Dimitar\Desktop\samp03e_svr_win32\gamemodes\EsRp.pwn(113) : error 035: argument type mismatch (argument 2)
And i get these errors.What's the problem.
Reply


Messages In This Thread
Problem with a stock - by Strech - 29.07.2012, 13:34
Re: Problem with a stock - by Dolby - 29.07.2012, 13:39
Re: Problem with a stock - by Misiur - 29.07.2012, 13:40
Re: Problem with a stock - by Strech - 29.07.2012, 13:41

Forum Jump:


Users browsing this thread: 2 Guest(s)