25.01.2016, 23:31
Hello guys,
This is the third thread about my ban system.. x)
So, everything looks allright, but when the banned player connect.
He should get a dialog where the informations of ban are marked (His pseudo, name of admin, Reason of ban)
But, they mark just his pseudo, the name of admin and reason stay blank.
I think it's the string's array whom's not correct..
Help. ^^
This is the third thread about my ban system.. x)
So, everything looks allright, but when the banned player connect.
He should get a dialog where the informations of ban are marked (His pseudo, name of admin, Reason of ban)
But, they mark just his pseudo, the name of admin and reason stay blank.
PHP код:
if(Banning[i] == 1)
{
new string[152], pname[24];
GetPlayerName(i,pname,sizeof(pname));
SetPlayerInterior(i,6);
SetPlayerPos(i,279.2436,-162.7030,999.5938);
SetPlayerFacingAngle(i,180.2424);
format(string, sizeof(string), "{FFFFFF}Vous avez йtй banni.\n\n{FFFFFF}Pseudo: {FFFF00}%s\n{FFFFFF}L'Administrateur: {FFFF00}%s\n{FFFFFF}Raison: {FFFF00}%s",pname,banned[i][adminbanning],banned[i][reason_banned]);
ShowPlayerDialog(i, 678, DIALOG_STYLE_MSGBOX, "Banni:", string, "Quitter", "");
dUserSetINT(PlayerName(i)).("Nameban",1);
Kick(i);
}
Help. ^^