[HELP] With sscanf
#1

When was the "zcmd" everything was fine, but now when is on "cmdtext" in text indicates a command /sg should show "USAGE: /sg [text]"

Код:
if(strcmp(cmdtext, "/sg", true) == 0)
{
  new pranesimas2[150], vardas[MAX_PLAYER_NAME];
  if(GetPlayerSkin(playerid) == 105 || GetPlayerSkin(playerid) == 106 || GetPlayerSkin(playerid) == 107)
  {
  if(sscanf(cmdtext,"s",pranesimas2)) return SendClientMessage(playerid,raudona,"USAGE: /sg [text]");
  GetPlayerName(playerid, vardas, sizeof(vardas));
  format( string, sizeof(string), "* Gang Grove member %s: %s", vardas, pranesimas2);
  SendClientMessageToAll(COLOR_LIMEGREEN, string);
  } else SendClientMessage(playerid,raudona,"[FunZoneLT]>> You are not this gang member.");
  return 1;
}
Reply


Messages In This Thread
[HELP] With sscanf - by V4at - 24.06.2012, 18:50
Re: [HELP] With sscanf - by Badger(new) - 24.06.2012, 21:19
Re: [HELP] With sscanf - by Vince - 24.06.2012, 21:40

Forum Jump:


Users browsing this thread: 1 Guest(s)