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;
}
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.
"[/url"n
static stock AutoReturn(input[])
{
if(strlen(input) > 20)
{
new k = strlen(input) / 20;
for(new s = 0; s < k; k++)
{
strins(input, "\n", 20*k, strlen(input));
}
}
return 1;
}
[debug] Run time error 10: "Native function failed"
[debug] strins
[debug] AMX backtrace:
[debug] #0 00002600 in AutoReturn (input[]=@000060bc "[align=center]Here some in
fo about our server[/align]") at C:\Users\Xeon\Desktop\samp serv\f
ilterscripts\mybb-connector.pwn:269
[debug] #1 000017c8 in public OnDialogResponse (playerid=0, dialogid=101, respon
se=1, listitem=1, inputtext[]=@00002728 "Server Informations (IP, Hostname)") at
C:\Users\Xeon\Desktop\samp serv\filterscripts\mybb-connector.pwn:
185
for(new i = 20, j = strlen(string); i < j; i += 21, j ++)
{
strins(input, "\n", i, i);
}
PHP код:
|