Pass color.
#1

How do I pass colors between scripts by CallRemoteFunction?
Reply
#2

Pass it as string or hex
Reply
#3

Color are just integers
Reply
#4

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));
Reply
#5

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.
Reply
#6

Skimmer it's a same define having different colors and well as string .
Reply
#7

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.
Reply
#8

Fixed, It was my mistake the loading of one FS before the one with the function did cause that problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)