How to do this chat system.
#1

This is my code SendClientMessage:
Код:
format(advert, sizeof(advert), "Quang cao: %s - Lien he: %s (%d)", advert, GetPlayerNameEx(reportid), PlayerInfo[reportid][pPnumber]);
			if(GetPVarInt(playerid, "AdvertVoucher") != 1)
			{
				GivePlayerCash(reportid, -150000);
			}
			iAdverTimer = gettime()+30;

			foreach(new i: Player)
			{
				if(!gNews[i] && InsideMainMenu{i} != 1 && InsideTut{i} != 1 && ActiveChatbox[i] != 0) SendClientMessage(i, TEAM_GROVE_COLOR, advert);
			}
And when players ask too much, some text will be lost. But this system below can fix it, but I don't know how to do like this.
http://forum.sa-mp.com/attachment.ph...1&d=1472109279
Reply
#2

increase advert[numbers_here] size
Reply
#3

Quote:
Originally Posted by Shinja
Посмотреть сообщение
increase advert[numbers_here] size
You mean like:
Normal: string[128]
Now we will change string[1000].
So it's done. Right ?
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=520734

Take a function from there, I'm not sure if it has the latest version of the include. But you can definitely just grab a function from there, put it into your gamemode, and make it show three periods at the end of the first message and at the start of each new line.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)