Setting Other Variables

Results 1 to 4 of 4
  1. #1
    Proficient Member StraMS is offline
    MemberRank
    Sep 2009 Join Date
    191Posts

    Setting Other Variables

    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.


  2. #2
    Alpha Member bramdebouvere is offline
    MemberRank
    Aug 2006 Join Date
    BelgiumLocation
    2,409Posts

    Re: Setting Other Variables

    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;

  3. #3
    Proficient Member StraMS is offline
    MemberRank
    Sep 2009 Join Date
    191Posts

    Re: Setting Other Variables

    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 by StraMS; 01-08-10 at 08:28 PM.

  4. #4
    Alpha Member bramdebouvere is offline
    MemberRank
    Aug 2006 Join Date
    BelgiumLocation
    2,409Posts

    Re: Setting Other Variables

    Code:
    //using hex notation:
    SetPlayerColor(playerid, 0xFFFF00AA);
     
    //using decimal notation:
    SetPlayerColor(playerid, 4294901930);
    and i think the hex is like this:

    "Ox" Opacity Red Green Blue



Advertisement