SA-MP Forums Archive
[SUGGESTION] Chat(new function!) - 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: [SUGGESTION] Chat(new function!) (/showthread.php?tid=195669)



[SUGGESTION] Chat(new function!) - Johnny_Xayc - 03.12.2010

pawn Код:
RemoveChatMessage(playerid,messageid);
params:
lineid - 0-10 last messages
pawn Код:
SetChatMessageString(playerid,messageid,text);
params:
lineid - 0-10 last messages
text - text to set string
pawn Код:
SetChatPos(playerid,x,y);
params:
x - Float coord
y - Float coord
pawn Код:
GetChatMessageString(playerid,messageid,string);
Example:
new mess[128];
GetChatMessageString(playerid,5,mess);
printf("%s",mess);



Re: [SUGGESTION] Chat(new function!) - Jay_ - 03.12.2010

Wouldn't be very useful. It would be possible via scripting anyway thanks to the SendPlayerMessage function.


AW: [SUGGESTION] Chat(new function!) - Cody09 - 03.12.2010

I think, it can be very useful, but I donґt no, if this funktion is able to realize


Re: [SUGGESTION] Chat(new function!) - papedo - 04.12.2010

GetChatMessageString >> why function.. you can save your chat to variables..
SetChatPos >> current position is good
RemoveChatMessage >> You do not need the function... Send messages with the current contents of the chat (that you must save to variables.) and when will you need to remove the line, you do not insert it
SetChatMessageString >> like removechatmessage.. just insert your own text instead of a variable containing the original row