Need help when compiling
#2

Indent you code in the right way.

pawn Код:
if (strcmp(cmd, "/shout", true) == 0 )
{
  if(IsPlayerConnected(playerid))
  {
    if(gPlayerLogged[playerid] == 0)
    {
      SendClientMessage(playerid, COLOR_GREY, "[!] You must first register or login! Please use !help for commands.");
      return 1;
    }
    new str[256], pname[256];
    GetPlayerName(playerid, pname, 256);
    format(str, 256, "[SHOUT]%s %s", pname, cmdtext[4]);
    SendClientMessageToAll(pCol, str);
    return 1;
  }
}

Reply


Messages In This Thread
Need help when compiling - by Bubastis - 04.03.2009, 13:27
Re: Need help when compiling - by Vince - 04.03.2009, 13:38
Re: Need help when compiling - by Bubastis - 04.03.2009, 13:40

Forum Jump:


Users browsing this thread: 1 Guest(s)