HTML Codes cleaning using pawn
#3

Thank you! didn't notice it.

--------------------------------------------------------------------------

Hello, im trying to evade double threads/posts

so im posting in same thread again.

here im trying to create a function that can insert '\n' for every 20 char in string.

PHP код:
static stock AutoReturn(input[])
{
    if(
strlen(input) > 20)
    {
        new    
strlen(input) / 20;
           for(new 
0kk++)
           {
            
strins(input"\n"20*kstrlen(input));
           }
    }
    return 
1;

Errors:
PHP код:

[debugRun time error 10"Native function failed"
[debug]  strins
[debugAMX 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 (IPHostname)") at
 C:\Users\Xeon\Desktop\samp serv\filterscripts\mybb-connector.pwn:
185 
Thank you!
Reply


Messages In This Thread
HTML Codes cleaning using pawn - by Xeon™ - 01.08.2017, 20:06
Re: HTML Codes cleaning using pawn - by FailerZ - 01.08.2017, 20:20
Re: HTML Codes cleaning using pawn - by Xeon™ - 01.08.2017, 21:02
Re: HTML Codes cleaning using pawn - by Paulice - 01.08.2017, 21:43
Re: HTML Codes cleaning using pawn - by Xeon™ - 01.08.2017, 22:22

Forum Jump:


Users browsing this thread: 1 Guest(s)