• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Setting Other Variables

Newbie Spellweaver
Joined
Sep 3, 2009
Messages
86
Reaction score
8
How could I set another players server variable like I tried PlayerHasFlightQueue[playa] = PlayerHasFlightQueue[playa] + 1;
but it will give me an error unless I remove [playa] and yes I have playa defined so don't give me that crap.
 
Joined
Aug 15, 2006
Messages
944
Reaction score
53
hmmm did you define it like this?:

Code:
new PlayerHasFlightQueueu[MAX_PLAYERS];

or did you do it like this? (this one is wrong for what you want to do)

Code:
new PlayerHasFlightQueueu;
 
Newbie Spellweaver
Joined
Sep 3, 2009
Messages
86
Reaction score
8
Oh.......I'm gonna try that and post back.




Thanks so much for the help! It worked. I got another question though, how could I set another player's nametag color?
 
Last edited:
Joined
Aug 15, 2006
Messages
944
Reaction score
53
Code:
[COLOR=#808080][I]//using hex notation:[/I][/COLOR]
[URL="http://wiki.sa-mp.com/wiki/SetPlayerColor"][COLOR=#006400]SetPlayerColor[/COLOR][/URL][COLOR=#66CC66]([/COLOR]playerid, 0xFFFF00AA[COLOR=#66CC66])[/COLOR];
 
[COLOR=#808080][I]//using decimal notation:[/I][/COLOR]
[URL="http://wiki.sa-mp.com/wiki/SetPlayerColor"][COLOR=#006400]SetPlayerColor[/COLOR][/URL][COLOR=#66CC66]([/COLOR]playerid, [COLOR=#4169E1]4294901930[/COLOR][COLOR=#66CC66])[/COLOR];

and i think the hex is like this:

"Ox" Opacity Red Green Blue
 
Back
Top