Pass color. - 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: Pass color. (
/showthread.php?tid=603935)
Pass color. -
AroseKhanNiazi - 29.03.2016
How do I pass colors between scripts by CallRemoteFunction?
Re: Pass color. -
xTURBOx - 29.03.2016
Pass it as string or hex
Re: Pass color. -
Golden96 - 29.03.2016
Color are just integers
Re: Pass color. -
K0P - 29.03.2016
Hex colors are just like numbers,you can also use them like that:
Код:
#define COLOR_BLACK {"000000"}
Save the color in a Var,forexample PVar
Код:
SetPVarInt(playerid, "COLOR", GetPlayerColor(playerid));
Re: Pass color. -
Skimmer - 29.03.2016
Better way to do this is to create an include file and put only your colors there.
Then you can include it in your both scripts.
Re: Pass color. -
AroseKhanNiazi - 29.03.2016
Skimmer it's a same define having different colors and well as string

.
Re: Pass color. -
AroseKhanNiazi - 01.04.2016
Okay well I tried and failed. It gives me black color; so any example how can I send color from my one FS to another and then use those color for sending messages and setting player colors.
Re: Pass color. -
AroseKhanNiazi - 01.04.2016
Fixed, It was my mistake the loading of one FS before the one with the function did cause that problem.