How do I make this in ZCMD?
#2

Hmm, here's how you convert it but make sure you defined everything.
pawn Код:
CMD:changecolor(playerid, params[])
{
  new color1, color2;
  tmp = strtok(cmdtext, idx);
  if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_ORANGE, "USAGE: /carcolor >color1< >color2<");
  color1 = strval(tmp);
  tmp = strtok(cmdtext, idx);
  if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_ORANGE, "USAGE: /carcolor >color1< >color2<");
  color2 = strval(tmp);
  ChangeVehicleColor(GetPlayerVehicleID(playerid), color1, color2);
  }
  else
  {
  SendClientMessage(playerid,COLOR_ORANGE,"You aren't in any Vehicle!");
  }
    return 1;
}
Reply


Messages In This Thread
How do I make this in ZCMD? - by jNkk - 22.12.2012, 15:18
Re: How do I make this in ZCMD? - by DaRk_RaiN - 22.12.2012, 15:21
Re: How do I make this in ZCMD? - by jNkk - 22.12.2012, 15:24
Re: How do I make this in ZCMD? - by DaRk_RaiN - 22.12.2012, 15:28
Re: How do I make this in ZCMD? - by Faisal_khan - 22.12.2012, 15:28
Re: How do I make this in ZCMD? - by jNkk - 22.12.2012, 15:38
Re: How do I make this in ZCMD? - by jNkk - 22.12.2012, 15:40
Re: How do I make this in ZCMD? - by Faisal_khan - 22.12.2012, 15:42
Re: How do I make this in ZCMD? - by DaRk_RaiN - 22.12.2012, 15:43
Re: How do I make this in ZCMD? - by jNkk - 22.12.2012, 15:52

Forum Jump:


Users browsing this thread: 1 Guest(s)