[Help] How I Fix This
#1

Hi, Im Creating My First TDM GM But Why Always The First Person Of The Skin Gets The Color Nmae Of The Skin Before The Selected One .
Ex. My Gangs Are
Grove 4 Skins
Ballas 3 Skins
Cops 5 Skins
Vagos 3 Skins
Desertians 1 Skin - The People In Desert
The Problem Is That The First Person Of Ballas Get The Name Color Of Grove - Green, And The First Person Of Cops Get The Name Color Of Ballas, etc...

Ok When A Player Gets The First Skin Of Grove The Player Name Color Go To The Desertian Skin Name Color In Witch Is Orange, When A Player Get Skin Of The First Ballas Skin The Color Of The Name Go To The Last Skin In Grove Witch Is Green, How Can I Fix This Problem? Every Skin Of The 1ST Gang Always Gets The Color Of The Skin Before It.

pawn Код:
public OnPlayerSpawn(playerid)
{

   switch(gClass[playerid])
   {
    case 0:
    {
      SetPlayerColor(playerid, COLOR_GREEN); //Grove
    }
    case 1:
    {
      SetPlayerColor(playerid, COLOR_GREEN); //Grove
    }
    case 3:
    {
      SetPlayerColor(playerid, COLOR_GREEN); //Grove
    }
    case 4:
    {
      SetPlayerColor(playerid, COLOR_GREEN); //Grove
    }
    case 5:
    {
      SetPlayerColor(playerid, COLOR_PURPLE); //Ballas
    }
    case 6:
    {
      SetPlayerColor(playerid, COLOR_PURPLE); //Ballas
    }
    case 7:
    {
      SetPlayerColor(playerid, COLOR_PURPLE); //Ballas
    }
    case 8:
    {
      SetPlayerColor(playerid, COLOR_BLUE); //Cops
    }
    case 9:
    {
       SetPlayerColor(playerid, COLOR_BLUE); //Cops
    }
    case 10:
    {
       SetPlayerColor(playerid, COLOR_BLUE); //Cops
    }
    case 11:
    {
       SetPlayerColor(playerid, COLOR_BLUE); //Cops
    }
    case 12:
    {
       SetPlayerColor(playerid, COLOR_BLUE); //Cops
    }
    case 14:
    {
       SetPlayerColor(playerid, COLOR_YELLOW); //Los Santos Vagos
    }
    case 15:
    {
       SetPlayerColor(playerid, COLOR_YELLOW); //Los Santos Vagos
    }
    case 16:
    {
       SetPlayerColor(playerid, COLOR_YELLOW); //Los Santos Vagos
    }
    case 17:
    {
       SetPlayerColor(playerid, COLOR_DESERTIAN); //Desertians
    }

  }
  return 1;
}
Is The Code Wrong ?
Reply


Messages In This Thread
[Help] How I Fix This - by legendario - 13.09.2009, 18:49
Re: [Help] How I Fix This - by Peter_Corneile - 13.09.2009, 19:01
Re: [Help] How I Fix This - by legendario - 13.09.2009, 19:23
Re: [Help] How I Fix This - by Peter_Corneile - 13.09.2009, 19:29
Re: [Help] How I Fix This - by legendario - 13.09.2009, 19:30
Re: [Help] How I Fix This - by dice7 - 13.09.2009, 19:31
Re: [Help] How I Fix This - by legendario - 13.09.2009, 19:32
Re: [Help] How I Fix This - by » sTeVe - 13.09.2009, 19:34
Re: [Help] How I Fix This - by Peter_Corneile - 13.09.2009, 19:35
Re: [Help] How I Fix This - by legendario - 13.09.2009, 19:36

Forum Jump:


Users browsing this thread: 1 Guest(s)