Easy; Name color problem
#1

Код:
CMD:namecolor(playerid, params[])
{
    if(IsPlayerAdmin(playerid) || status[playerid][admin] >= 5)
    {
        new id; new color;
        if(sscanf(params, "us", id, color))
        {
            SendClientMessage(playerid, COLOR_WHITE, "USAGE: /namecolor <ID> <COLOR>");
   return 1;
        }
  else if(color == 1) return SetPlayerColor(id, COLOR_BLUE);
  else if(color == 2) return SetPlayerColor(id, COLOR_YELLOW);
  else if(color == 3) return SetPlayerColor(id, COLOR_PINK);
  else if(color == 4) return SetPlayerColor(id, COLOR_WHITE);

    }
 else
 {
  SendClientMessage(playerid, 0xFFFFFFFF, "You aren't an admin");
 }
 return 1;
}
This code gives me no errors, but it isn't working. Help
Reply


Messages In This Thread
Easy; Name color problem - by MarcGonzales - 11.02.2015, 15:05
Re: Easy; Name color problem - by nezo2001 - 11.02.2015, 15:09
Re: Easy; Name color problem - by MarcGonzales - 11.02.2015, 15:11
Re: Easy; Name color problem - by nezo2001 - 11.02.2015, 15:13
Re: Easy; Name color problem - by MarcGonzales - 11.02.2015, 15:57
Re : Easy; Name color problem - by MarcGonzales - 11.02.2015, 16:25
Re: Easy; Name color problem - by nezo2001 - 11.02.2015, 16:27
Re : Easy; Name color problem - by MarcGonzales - 11.02.2015, 16:33
Re: Easy; Name color problem - by nezo2001 - 11.02.2015, 16:41
Re : Re: Easy; Name color problem - by MarcGonzales - 11.02.2015, 18:06

Forum Jump:


Users browsing this thread: 1 Guest(s)