StrReplace Error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: StrReplace Error (
/showthread.php?tid=490170)
StrReplace Error -
Psyhophatic - 25.01.2014
Hello... I have a little problem with this code
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
ERRORS
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
Does anyone know how can I fix this ?