Command error
#1

Код:
CMD:ban(playerid, params[])
{
    new id, reason[50], string[128], banned[MAX_PLAYER_NAME];
    if(PlayerInfo[playerid][pAdminLevel] < 2 || !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,"You Are not Rcon admin Or admin lvl 3+");
    if(sscanf(params, "uz", id, reason)) return SendClientMessage(playerid, -1, "USAGE: /ban [playerid] [reason(optional)]");
    GetPlayerName(id, banned, sizeof(banned));
    format(string, sizeof(string), "AdmCmd: %s has been banned by %s. reason: %s", banned, GetName(playerid), reason);
    SendClientMessageToAll(red, string);
    BanEx(id, reason);
    return 1;
}
help
errors
Код:
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(442) : error 017: undefined symbol "PlayerInfo"
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(442) : warning 215: expression has no effect
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(442) : error 001: expected token: ";", but found "]"
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(442) : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(442) : fatal error 107: too many error messages on one line
Reply


Messages In This Thread
Command error - by Dejan12345 - 03.08.2016, 16:51
Re: Command error - by Luicy. - 03.08.2016, 16:53
Re: Command error - by Dejan12345 - 03.08.2016, 16:53
Re: Command error - by SyS - 03.08.2016, 16:54
Re: Command error - by Luicy. - 03.08.2016, 16:55
Re: Command error - by Dejan12345 - 03.08.2016, 16:56
Re: Command error - by Luicy. - 03.08.2016, 16:57
Re: Command error - by Dejan12345 - 03.08.2016, 16:58
Re: Command error - by Luicy. - 03.08.2016, 16:59
Re: Command error - by K0P - 03.08.2016, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)