invalid function?
#1

pawn Код:
forward AntiMoney();
public AntiMoney()
{
for (new i = 0; i != MAX_PLAYERS; ++i)
{
  if (IsPlayerConnected(i))
    {
      if (GetPlayerMoney(i) > 9999998)
            {
                 SendClientMessage(i, 0xFFFFFF, "You forgot to pay the tax.");
                 new string[128];
                 new pName[MAX_PLAYER_NAME];
                 GetPlayerName(i, pName, sizeof(pName));
                 format(string, 128, "%s was auto-banned for Money Cheat.", pName);
                 SendClientMessageToAll(COLOR_RED, string);
                Ban(i);
        }
            }
        }
    }
     return 1;
}
What's wrong?

error 010: invalid function or declaration
Reply


Messages In This Thread
invalid function? - by Face9000 - 24.01.2011, 10:17
Re: invalid function? - by Grim_ - 24.01.2011, 10:20
Re: invalid function? - by Lorenc_ - 24.01.2011, 10:20
Re: invalid function? - by Face9000 - 24.01.2011, 10:33

Forum Jump:


Users browsing this thread: 1 Guest(s)