why ban command dont work
#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,"Nisi Owner");
    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;
}
Код:
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\gamemodes\BARP.pwn(486) : error 017: undefined symbol "PlayerInfo"
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\gamemodes\BARP.pwn(486) : warning 215: expression has no effect
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\gamemodes\BARP.pwn(486) : error 001: expected token: ";", but found "]"
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\gamemodes\BARP.pwn(486) : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\gamemodes\BARP.pwn(486) : fatal error 107: too many error messages on one line
help bro
Reply
#2

Playerinfo

try it pInfo
Reply
#3

dont work bro yesterday work today dont work
Reply
#4

BanEx < really? Where did you find this command?
I suggest you delete thia command and search for another tutorial that is not 5 years old.
Reply
#5

Its the reason. PlayerInfo. Try to search again about it.
And replace it.
And that code cant ne worked be4 lmfao that or u may removed/changed something.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)