Cannot see chat!
#1

If someone In my server typs it says [USERNAME] says [TEXT]
I would like to see the default chat [USERNAME]: [TEXT]
Because the first one won't show the text to everyone!

How can I fix this
I'm using the LARP script.
Reply
#2

Press F7
Reply
#3

pawn Код:
static string[200];
format(string,sizeof(string),"%s",text);
SendPlayerMessageToAll(playerid, string);
Reply
#4

Where should I place it?
Reply
#5

no guys, he means he want to remove the RP chat and add the default chat..
show your onplayertext callback
Reply
#6

Yes Admantis that's what I mean.
Reply
#7

iSlice, don't use blackwave's code xD
1) 200 array? o_O
Why using format? Just use..
pawn Код:
SendPlayerMessageToAll(playerid, text);
Add this btw in your OnPlayerText(playerid, text[])
Reply
#8

Yes I used his code and it works now!
Will add yours if its better :P
Reply
#9

If mine's gonna work it is better.
It uses less diskspace and doesn't use unneeded space. He did do this:
He'd format a string with in it the player's text and he send that (array size 200 while max size is 12.
I'd send a player text with just the text the player typed. So same effect, but mine doesn't waste diskspace etc.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)