Cannot see chat! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Cannot see chat! (
/showthread.php?tid=239470)
Cannot see chat! -
iSlice - 13.03.2011
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.
Respuesta: Cannot see chat! -
Alex_Obando - 13.03.2011
Press F7
Re: Cannot see chat! -
blackwave - 13.03.2011
pawn Код:
static string[200];
format(string,sizeof(string),"%s",text);
SendPlayerMessageToAll(playerid, string);
Re: Cannot see chat! -
iSlice - 13.03.2011
Where should I place it?
Re: Cannot see chat! -
admantis - 13.03.2011
no guys, he means he want to remove the RP chat and add the default chat..
show your onplayertext callback
Re: Cannot see chat! -
iSlice - 13.03.2011
Yes Admantis that's what I mean.
Re: Cannot see chat! -
Kwarde - 13.03.2011
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[])
Re: Cannot see chat! -
iSlice - 13.03.2011
Yes I used his code and it works now!
Will add yours if its better :P
Re: Cannot see chat! -
Kwarde - 13.03.2011
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.