/ad characters
#10

then you should split that one string.

for example

Code:
}
    new string[256]="Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text ";
    new str[54];
    new i,j;
    i=0;
    begin:
    j=0;
    while(j<53)
    {
               str[j]=string[i];
               if(!str[j])
               {
                //send to players the message.
                      goto end;
                }
                i++;
                j++;
    }
    if(str[j-1]!='\0')
    {
        str[53]='\0';
        str[52]='.';
        str[51]='.';
        str[50]='.';
        i=i-3;
        //send the message
       goto begin;
       end:;
    }
    
}
I tested it in Dev C and it should work.
Output was
Code:
Text Text Text Text Text Text Text Text Text Text ...
Text Text Text Text Text Text
Reply


Messages In This Thread
/ad characters - by kidor - 09.03.2012, 19:57
Re: /ad characters - by Dan_Barocu - 09.03.2012, 19:59
Re: /ad characters - by CmZxC - 09.03.2012, 20:01
Re: /ad characters - by kidor - 09.03.2012, 20:04
Re: /ad characters - by Twisted_Insane - 09.03.2012, 20:09
Re: /ad characters - by kidor - 09.03.2012, 20:11
Re: /ad characters - by Roko_foko - 09.03.2012, 20:19
Re: /ad characters - by kidor - 09.03.2012, 20:20
Re: /ad characters - by kidor - 09.03.2012, 21:01
Re: /ad characters - by Roko_foko - 09.03.2012, 21:02

Forum Jump:


Users browsing this thread: 1 Guest(s)