Save player color as hex value for database - 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: Save player color as hex value for database (
/showthread.php?tid=350030)
Save player color as hex value for database -
MR_MAN - 10.06.2012
Okay basically I'm making a Live chat by storing the players text / name in the database, then use php / ajax to retrieve it
The problem I'm having is I'm trying to save the players color in the database, as a hex value but GetPlayerColor(playerid) only returns a decimal value!
Could someone show / explain how this would be achieved?
Thanks
Re: Save player color as hex value for database -
MP2 - 11.06.2012
https://sampforum.blast.hk/showthread.php?tid=218179