error 010: invalid function or declaration
#1

public BanPublic(playerid) { Ban(playerid); };
BanWithmessage(playerid, message[])
{
SendClientMessage(playerid, COLOR_RED, message);
SetTimerEx("BanPublic", 1000, 0, "d", playerid);
return 1;
}

Can somebody fix this, I dont know what the problem is
Reply
#2

Here is your problem.
pawn Код:
public BanPublic(playerid) { Ban(playerid); };
Remove the ; sign at the end.

Like this
pawn Код:
forward BanPublic(playerid);
public BanPublic(playerid) { Ban(playerid); }

BanWithMessage(playerid, message[])
{
    SendClientMessage(playerid, 0xFF0000FF, message);
    SetTimerEx("BanPublic", 1000, 0, "d", playerid);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)