Dialog box problem - 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: Dialog box problem (
/showthread.php?tid=337437)
Dialog box problem -
calin1996 - 26.04.2012
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>
Re: Dialog box problem -
Phyrunx - 26.04.2012
Show us the Whole Thing
Show us the where you define String
And everything related to that String
AW: Dialog box problem -
calin1996 - 26.04.2012
Look at the first post i 've edited it.
AW: Dialog box problem -
Tigerkiller - 26.04.2012
intecrease the string lengths off the strings like 500 and it should work
AW: Dialog box problem -
calin1996 - 26.04.2012
It says
AW: Dialog box problem -
Tigerkiller - 26.04.2012
hmm show us ur whole cmd
Re: Dialog box problem -
Shabi RoxX - 26.04.2012
Increase the size of statsstring.
AW: Dialog box problem -
calin1996 - 26.04.2012
IF i do this it will say
Re: AW: Dialog box problem -
Shabi RoxX - 26.04.2012
Quote:
Originally Posted by calin1996
|
Then dialog can't handle two much characters .
AW: Dialog box problem -
Tigerkiller - 26.04.2012
show how your cmd looks like