Dialog
#1

pawn Код:
new coordsstring[1024];
        format(coordsstring, sizeof(coordsstring), "Name:[%s] Age:[%d] Sex:[%s] Number:[%d] Hunger:[%s]\n", Account[targetid][pName],age,atext,pnumber, hrank);
        format(coordsstring, sizeof(coordsstring), "Donaterank:[%s] Job:[%s] Cash:[$%d] XP:[%d/%d] Level:[%d]\n", drank,jtext,cash,exp, expamount,level);
        format(coordsstring, sizeof(coordsstring), "Days:[%d] | Hours[%d] Minutes:[%d]\n", days,hours,minutes);
        format(coordsstring, sizeof(coordsstring), "Gun: %s [%d] Gun: %s [%d] Gun: %s\n", textweapon2,Account[targetid][pAmmo2],textweapon1,Account[targetid][pAmmo1],textweapon0);
        if(Account[targetid][pMember] != 0)
        {
            format(coordsstring, sizeof(coordsstring), "%sFaction Name <%s> | Faction Rank <%s>...\n",ttext, rtext);
        }
        if(Account[targetid][pGMember] != 255)
        {
            format(coordsstring, sizeof(coordsstring), "%sGang Name <%s> | GangRank <%s>...\n",gatext, r1text);
        }
        if(Account[targetid][pFMember] != 255)
        {
            format(coordsstring, sizeof(coordsstring), "%sFamily Name <%s> | GangRank <%s>...\n",f2text, r2text);
        }
        if (Account[playerid][pAdmin] >= 1)
        {
            format(coordsstring, sizeof(coordsstring), "%sADMIN: House key [%d] Business key [%d] HireKey [%d] int:[%d] Carkey1[%d] Carkey2[%d] Carkey3[%d]\n", housekey,bizkey,HireCar[targetid],intir,car1,car2,car3);
            format(coordsstring, sizeof(coordsstring), "%sADMIN: Bank Money [$%d]\n", account);
        }
         ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"Stats",coordsstring,"Close","");
In that pic you can see that, dialog is so small, how to dislplay rest of it?-.-
Reply
#2

I have long stats dialog MSGBOX in my server and im using long string array : D
pawn Код:
new coordsstring[ 99999 ];
Reply
#3

Quote:
Originally Posted by Clive
Посмотреть сообщение
I have long stats dialog MSGBOX in my server and im using long string array : D
pawn Код:
new coordsstring[ 99999 ];
WTF!!!
Reply
#4

Quote:
Originally Posted by AK47317
Посмотреть сообщение
WTF!!!
Lol im using it that's why, i've posted. : D
Reply
#5

Hm help?
Reply
#6

No response, bump
Reply
#7

You forgot an very important part of this piece of code.
pawn Код:
new coordsstring[1024];
        format(coordsstring, sizeof(coordsstring), "Name:[%s] Age:[%d] Sex:[%s] Number:[%d] Hunger:[%s]\n", Account[targetid][pName],age,atext,pnumber, hrank);
        format(coordsstring, sizeof(coordsstring), "%sDonaterank:[%s] Job:[%s] Cash:[$%d] XP:[%d/%d] Level:[%d]\n", coordsstring,drank,jtext,cash,exp, expamount,level);
        format(coordsstring, sizeof(coordsstring), "%sDays:[%d] | Hours[%d] Minutes:[%d]\n", coordsstring,days,,hours,minutes);
        format(coordsstring, sizeof(coordsstring), "%sGun: %s [%d] Gun: %s [%d] Gun: %s\n", coordsstring,textweapon2,Account[targetid][pAmmo2],textweapon1,Account[targetid][pAmmo1],textweapon0);
        if(Account[targetid][pMember] != 0)
        {
            format(coordsstring, sizeof(coordsstring), "%sFaction Name <%s> | Faction Rank <%s>...\n",coordsstring,ttext, rtext);
        }
        if(Account[targetid][pGMember] != 255)
        {
            format(coordsstring, sizeof(coordsstring), "%sGang Name <%s> | GangRank <%s>...\n",coordsstring,gatext, r1text);
        }
        if(Account[targetid][pFMember] != 255)
        {
            format(coordsstring, sizeof(coordsstring), "%sFamily Name <%s> | GangRank <%s>...\n",coordsstring,f2text, r2text);
        }
        if (Account[playerid][pAdmin] >= 1)
        {
            format(coordsstring, sizeof(coordsstring), "%sADMIN: House key [%d] Business key [%d] HireKey [%d] int:[%d] Carkey1[%d] Carkey2[%d] Carkey3[%d]\n", coordsstring,housekey,bizkey,HireCar[targetid],intir,car1,car2,car3);
            format(coordsstring, sizeof(coordsstring), "%sADMIN: Bank Money [$%d]\n",coordsstring, account);
        }
         ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"Stats",coordsstring,"Close","");
I hope this helps.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)