25.01.2014, 17:14
Hello... I have a little problem with this code
ERRORS
Does anyone know how can I fix this ?
PHP код:
stock strreplace(string[],find,replace) // line 964
{
for(new i=1,i<string[i],i++)
{
if(string[i] == find)
{
string[i] = replace;
}
}
return 1;
}// line 974
PHP код:
RPG.pwn(964) : error 025: function heading differs from prototype
RPG.pwn(965) : error 021: symbol already defined: "strreplace"
RPG.pwn(966) : error 021: symbol already defined: "i"
RPG.pwn(966) : error 029: invalid expression, assumed zero
RPG.pwn(966) : error 029: invalid expression, assumed zero
RPG.pwn(966) : fatal error 107: too many error messages on one line

