Continue text
#1

I want to make 2 lines, when player write something and its over the text line the script just move down and continue his sentence in other line.
any ideas?
Reply
#2

If you mean if the player stops writing, but doesn't post the text message and then gets linked to another line, that's impossible
Reply
#3

I mean if the player write a sentence and the line cant post all sentence, so its move to other line .
its possible because LSRP made it.
Reply
#4

Quote:
Originally Posted by vection
Посмотреть сообщение
I mean if the player write a sentence and the line cant post all sentence, so its move to other line .
its possible because LSRP made it.
Text wrapping, yes that's possible. I think that's enabled by default too.
Reply
#5

Quote:
Originally Posted by Calgon
Посмотреть сообщение
Text wrapping, yes that's possible. I think that's enabled by default too.
He means this:

Max_Neville says: Hello I am Max Neville, and i play on this server and i'm very good in RP and i'm a Cop IC.

to

Max_Neville says: Hello I am Max Neville, and i play on this server
Max_Neville says: and i'm very good in RP and i'm a Cop IC.

So it makes 2 lines of:
Max_Neville says: Hello I am Max Neville, and i play on this server and i'm very good in RP and i'm a Cop IC.
Reply
#6

Yes i mean this.
Any ideas how to make it ?
Reply
#7

Not possible or it will take alot lines, plus why you need it?
Reply
#8

It will not take nothing more than few lines,

OnPlayerText

if(text > 256)
{
strmid(part1,text,0,256,255);
strmid(part2,text,257,512,255);
}
SendClientMessage(part1
SendClientMessage(part2
Im not tested this way, but it should work
Reply
#9

its not work for me. just give me errors.
i tried to take this code and make it work for /ad command.
fix my code please.
pawn Код:
new part1[256];
            new part2[512];
            if(offset > 256)
            {
                 strmid(part1,"Advertisement: %s", result ,0,256,255);
                 strmid(part2,"Contact: %s Ph: %d", sendername,PlayerInfo[playerid][pPnumber] ,257,512,255);
                 SendClientMessageToAll(TEAM_GROVE_COLOR,part1);
                 SendClientMessageToAll(TEAM_GROVE_COLOR,part2);
            }
Reply
#10

WHAT THE FUCK? You are using 512 cells for just text? Thats insane.......
pawn Код:
new part1[100];
            new part2[100];
            if(offset > 100)
            {
                 format(part1, sizeof(part1), "Advertisement: %s", result);
                 strmid(part2, sizeof(part2), "Contact: %s Ph: %d", sendername,PlayerInfo[playerid][pPnumber]);
                 SendClientMessageToAll(TEAM_GROVE_COLOR,part1);
                 SendClientMessageToAll(TEAM_GROVE_COLOR,part2);
            }
Also if you use offset > 256 that it is more than 3 lines that you use
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)