[ SOLVED ]
#1

[ SOLVED ]

Thanks again !
Reply
#2

I think you can solve it this way..
you are using pre-defined variables like: COLOR_JOB_CITIZEN

When you do this:
pawn Код:
Color_Return = "COLOR_JOB_ANARCHIST"
You're filling COLOR_Return with a string, and since COLOR_JOB_ANARCHIST is a variable, you'll have to do it like this:
pawn Код:
Color_Return = COLOR_JOB_ANARCHIST; //without the quotes
<-- without the "" "" "" " quoties
Reply
#3

Instead of defining all jobs/colors, just make a GetPlayerColor.

Example:
Код:
if(strcmp(cmdtext, "/me", true, 3) == 0)// 3 is the length of /me
  {
  if(!strlen(cmdtext[3])) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
  GetPlayerName(playerid, string, sizeof(string));
  format(string, sizeof(string), "[ ! ] %s : %s", string, cmdtext[4]);
  SendClientMessageToAll(GetPlayerColor(playerid), string);
  return 1;
  }
Reply
#4

lol, RaFsTaR ... Why didn't I think of that !?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)