SA-MP Forums Archive
The whole dialog isnt being showed - 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: The whole dialog isnt being showed (/showthread.php?tid=423643)



The whole dialog isnt being showed - Don_Cage - 18.03.2013

So basically the dialog is only showing a part of itself and not the whole thing..
pawn Код:
if(strcmp(cmd, "/armory", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsPlayerInRangeOfPoint(playerid, 10, 233.5504,124.9487,1003.2188) || IsPlayerInRangeOfPoint(playerid, 10,1456.9180,-1761.4631,3285.2859))
            {
                if(PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1) return SendClientMessage(playerid,COLOR_GREY,"** You are not in SAPD!");
                else if (PlayerInfo[playerid][pDuty] == 0) return SendClientMessage(playerid,COLOR_GREY,"** You are NOT on duty!");
               
                new string1[128];
                format(string1,sizeof(string1),"1\tArmour (%d Left)\n2\tMedical Kit (%d Left)\n3\tMP5 (%d Left)\n4\tShot Gun (%d Left)\n5\tRiot Shield (%d Left)\n6\tSWAT (%d L /*here it stops*/ eft)\n7\tSharpShooter (%d Left)",Armory[ARMOUR],Armory[MEDKIT],Armory[MP5],Armory[SHOTGUN],Armory[SHIELD],Armory[SWAT],Armory[SHARP]);
                ShowPlayerDialog(playerid, 501, DIALOG_STYLE_LIST,"Armory", string1, "Select","Close");
                SendClientMessage(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
                return 1;
            }
        }
        return 1;
    }



Re: The whole dialog isnt being showed - Jeffry - 18.03.2013

pawn Код:
new string1[128];
to
pawn Код:
new string1[1024];



Re: The whole dialog isnt being showed - Misiur - 18.03.2013

pawn Код:
new string1[128]; => new string1[256];
Out of buffer