Posts: 1,349
Threads: 194
Joined: Jan 2014
Reputation:
0
How do I pass colors between scripts by CallRemoteFunction?
Posts: 596
Threads: 75
Joined: Nov 2015
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));
Posts: 484
Threads: 11
Joined: Oct 2012
Reputation:
0
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.
Posts: 1,349
Threads: 194
Joined: Jan 2014
Reputation:
0
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.
Posts: 1,349
Threads: 194
Joined: Jan 2014
Reputation:
0
Fixed, It was my mistake the loading of one FS before the one with the function did cause that problem.