SA-MP Forums Archive
player text Problem - 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)
+--- Thread: player text Problem (/showthread.php?tid=633288)



player text Problem - adri[4]Life - 28.04.2017

hi Guys today my friend got a bug which is : when the player Sends a Message first line is using the yellow color which he want but the second line (of the text which is sent by a player) is white the problem he want it yellow too
Picture:



Re: player text Problem - Sebz - 28.04.2017

Whatever you're using to concatenate your string is sending the second with a different color for the client message. Find that and set it to yellow.


Re: player text Problem - adri[4]Life - 28.04.2017

Quote:
Originally Posted by Sebz
Посмотреть сообщение
Whatever you're using to concatenate your string is sending the second with a different color for the client message. Find that and set it to yellow.
thanks, can u show me an example please?


Re: player text Problem - Sebz - 28.04.2017

CTRL+F for 'strcat' and see if you can find where the SendClientMessage related to that is located. It appears it's there two times with two different colors.


Re: player text Problem - adri[4]Life - 28.04.2017

Quote:
Originally Posted by Sebz
Посмотреть сообщение
CTRL+F for 'strcat' and see if you can find where the SendClientMessage related to that is located. It appears it's there two times with two different colors.
dude please understand me, it's not SendClientMessage which the server sends to a player/players but it's a message which a player has pressed T then wrote it finally pressed enter to send it to everyone. my friend who made this gm had that problem which when someone write a text only the first line is yellow the other lines becomes white so he need help in making it all yellow


Re: player text Problem - Sebz - 28.04.2017

CTRL+F -> public OnPlayerText(playerid, text[])

Post the code within that here and I'll help you out.


Re: player text Problem - Sew_Sumi - 28.04.2017

Just saying, instead of that parachute pickup for the jetpack, you could use a jetpack pickup...


Re: player text Problem - Astralis - 28.04.2017

Increase string size.


Re: player text Problem - adri[4]Life - 28.04.2017

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Just saying, instead of that parachute pickup for the jetpack, you could use a jetpack pickup...
xD i'm not the scripter who used parachute pickup for jetpack and i do not have the code source but ryderX :/ needs help
anyway +Rep
Quote:
Originally Posted by Astralis
Посмотреть сообщение
Increase string size.
Thanks +rep