04.12.2015, 15:09
Hello,
I need help with saving the Ban Reason using y_ini..
Code yet:
http://pastebin.com/g15dAu6v
Where I need to save ban reason:
Please explain me how to do it.
Errors: http://prntscr.com/9aad10
I need help with saving the Ban Reason using y_ini..
Code yet:
http://pastebin.com/g15dAu6v
Where I need to save ban reason:
pawn Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerWeapon(playerid) == 26)
{
if(pAntiHackSawnOff[playerid] == 0)
{
new name[MAX_PLAYER_NAME], BanReasonString[17], BanByString[10];
GetPlayerName(playerid, name, sizeof(name));
format(BanReasonString, sizeof(BanReasonString), "Sawn Off Hacking");
format(BanByString, sizeof(BanByString), "Anti Hack");
PlayerInfo[playerid][pBanned] = 1;
PlayerInfo[playerid][pBanName] = name[playerid];
PlayerInfo[playerid][pBanBy] = BanByString;
PlayerInfo[playerid][pBanReason] = BanReasonString;
ResetPlayerWeapons(playerid);
ShowPlayerDialog(playerid, Dialog_AntiHackSawnOffMessage, DIALOG_STYLE_MSGBOX, ""Dialog_Color_Red"Banned!", "[Anti-Hack] You have been banned by the Anti-Hack system for: Sawn Off Hack.", "Appael", "Quit");
}
}
return 1;
}
Errors: http://prntscr.com/9aad10