Dialog box problem
#1

Lines:
pawn Код:
new string2[256],string3[256],string4[256],string5[256],string6[256],statsstring[256];
format(string3, sizeof string3, "Nivel:[%d] Sex:[%s] Varsta:[%d] Telefon:[%d] Nivel-Donator:[%s] Gold:[%d] Cost-Nivel:[%d]", level,atext,age,pnumber,drank,gold,costlevel);
        format(string4, sizeof string4, "Ore Jucate:[%d] Record-Pescuit:[%d] Arestari:[%d] Job:[%s] Respect:[%d/%d] Caritate/Puncte:[%d/%d]", ptime,bigfish,arrests,jtext,exp,expamount);
        format(string5, sizeof string5, "Cann/Coca:[%d/%d] Materiale:[%d] Echipa:[%s] Organizatie:[%s] Grad:[%s] Accent[%s]",drugs,drugs2,mats,ttext,ftext,rtext,PlayerInfo[playerid][pAccent]);
        if (PlayerInfo[playerid][pAdmin] >= 1)
        {
        format(string6, sizeof string6, "Casa:[%d] Afacere:[%d] Int:[%d] LumeVirtuala:[%d/%d] Locatie:[%d] Bani:[ %d $ + %d $= %d $]", housekey,bizkey,intir,virworld,virworld2,local,money2,money1,totalsold);
        format(statsstring, sizeof statsstring, "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",string3,string4,string5,string6);
        ShowPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, 0, "Informatii player",statsstring,"exit", "");
At comand:
pawn Код:
if (strcmp(cmd, "/stats", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (gPlayerLogged[playerid] != 0)
            {
                ShowStats(playerid,playerid);
                OnPlayerUpdateSafe(playerid);
                /*GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "* %s isi deschide agenda si se uita la statutul personal.", sendername);
                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);*/

            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Nu esti logat!");
            }
        }
        return 1;
    }
Errors (photo):
<script src='/imageshack/shareable/?i=samp017kf.png&p=tl' type='text/javascript'></script><noscript></noscript>
Reply
#2

Show us the Whole Thing
Show us the where you define String
And everything related to that String
Reply
#3

Look at the first post i 've edited it.
Reply
#4

intecrease the string lengths off the strings like 500 and it should work
Reply
#5

It says
pawn Код:
Unknown Comand
Reply
#6

hmm show us ur whole cmd
Reply
#7

Increase the size of statsstring.
Reply
#8

IF i do this it will say
pawn Код:
Unknown Comand
Reply
#9

Quote:
Originally Posted by calin1996
Посмотреть сообщение
IF i do this it will say
pawn Код:
Unknown Comand
Then dialog can't handle two much characters .
Reply
#10

show how your cmd looks like
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)