/(an)nounce command. Help please.
#1

Код:
  if (strcmp("/an", cmdtext, true, 5) == 0 || strcmp("/announce", cmdtext, true, 5) == 0) // Anounces Text Accross All Players Screens
  {
  if(PlayerAdminLevel[playerid] >= 2)
  {
  if(strlen(cmdtext) <= 6) {
  SendClientMessage(playerid, COLOR_RED, "USAGE: /(an)nounce (msg)");
  return 1;
  }
	new pName[24], str[128];
  new text = strlen(cmdtext)
ERROR LINE>>  GetPlayerName(playerid,pName,sizeof(pName)); << ERROR LINE
  format(str, sizeof(str), "[ADMIN ANNOUNCE] %s(%d): %s.", pName, playerid, text);
  SendClientMessageToAll(COLOR_BLUE, str);
  }
	else
  SendClientMessage(playerid,0xFF0000AA,"Bad Command. Type /commands for available commands depending on your chosen job/skill");
  return 1;
	}
Код:
C:\Users\Bouke\Desktop\Server\Server 1\gamemodes\lvrcr.pwn(5545) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
/(an)nounce command. Help please. - by ownboy - 22.02.2010, 22:52
Re: /(an)nounce command. Help please. - by Fedee! - 22.02.2010, 22:54
Re: /(an)nounce command. Help please. - by silvan - 22.02.2010, 22:56
Re: /(an)nounce command. Help please. - by ownboy - 22.02.2010, 23:01
Re: /(an)nounce command. Help please. - by CJ101 - 22.02.2010, 23:05
Re: /(an)nounce command. Help please. - by Sfrcr - 22.07.2010, 15:31

Forum Jump:


Users browsing this thread: 2 Guest(s)