01.08.2017, 20:06
(
Последний раз редактировалось Xeon™; 01.08.2017 в 20:58.
)
Hello,
im trying to create a function that will clean strings from html codes generated by mybb's/vB forums, but i get some erros.
Code:
Errors:
Thank you!
im trying to create a function that will clean strings from html codes generated by mybb's/vB forums, but i get some erros.
Code:
PHP код:
static stock PraseClean(input[])
{
new strx[][] =
{
// start of function
"[color",
"[url",
"[b",
"[u",
"[s",
"[quote",
"[code",
"[php",
"[img",
"[size",
"[font",
"[align",
"[list",
"[email",
// end of function
"[/color",
"[/url"n
"[/b",
"[/u",
"[/s",
"[/quote",
"[/code",
"[/php",
"[/img",
"[/size",
"[/font",
"[/align",
"[/list",
"[/email"
};
new x, z; // didn't found a nice naming, so sorry :/
for(new i = 0; i < sizeof strx; i++)
{
x = strfind(input, strx[i], true);
if(k != -1)
{
z = strfind(input, "]", true);
strdel(input, x, z);
}
}
return 1;
}
PHP код:
C:\Users\Xeon\Desktop\samp serv\filterscripts\mybb-connector.pwn(274) : error 010: invalid function or declaration
C:\Users\Xeon\Desktop\samp serv\filterscripts\mybb-connector.pwn(274 -- 312) : error 010: invalid function or declaration
C:\Users\Xeon\Desktop\samp serv\filterscripts\mybb-connector.pwn(274 -- 315) : error 010: invalid function or declaration
C:\Users\Xeon\Desktop\samp serv\filterscripts\mybb-connector.pwn(274 -- 315) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.