String size.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: String size.. (
/showthread.php?tid=599435)
String size.. -
KillerDVX - 25.01.2016
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.
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);
}
I think it's the string's array whom's not correct..
Help. ^^
Re: String size.. -
KillerDVX - 25.01.2016
Come on..
Re: String size.. -
Jefff - 26.01.2016
https://sampwiki.blast.hk/wiki/Kick
Re: String size.. -
KillerDVX - 26.01.2016
Quote:
Originally Posted by Jefff
|
Why would you post this? Did you read what I have marked above?
Re: String size.. -
BroZeus - 26.01.2016
Try
[I]printf("DEBUG admin %s reason %s", banned[i][adminbanning],banned[reason_banned]);
And see what it prints, maybe the name and reason aren't even stored properly in those vars?