24.01.2011, 10:20
Next time, please include the line of which the errors appears.
At any rate, the problem is you have an extra bracket.
At any rate, the problem is you have an extra bracket.
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;
}