SA-MP Forums Archive
[Help] Dialogs.. - 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: [Help] Dialogs.. (/showthread.php?tid=508825)



[Help] Dialogs.. - juandiegox - 24.04.2014

hi all friends forum samp, well I have a problem with a dialogue that will create, is on account of the character, really do not understand why it happens, I've created dialogues whether and everything is first time that happens to me it is strange, well the problem is that I want I want to show my own, but only shows a line and not the other, I use format, well I leave the code, please help ..
pawn Код:
new stringaccount[1024];
{
format(stringaccount, sizeof(stringaccount), "{FFFE6B}Level{FFFFFF}: %d | {FFFE6B}Exp{FFFFFF}: %d/%d | {FFFE6B}Money in hand{FFFFFF}: %d | {FFFE6B}Admin{FFFFFF}: %d",PlayerInfo[playerid][pLvel],PlayerInfo[playerid][pExp],ExpRequest,PlayerInfo[playerid][pMoney],PlayerInfo[playerid][pAdminMS]);
}
{
format(stringaccount, sizeof(stringaccount), "\n{FFFE6B}Sex{FFFFFF}: %s |{FFFE6B}Age{FFFFFF}: %d  | {FFFE6B}Nacionality{FFFFFF}: %s | {FFFE6B}Clan{FFFFFF}: %s {FFFE6B}Job{FFFFFF}: %s", gender, PlayerInfo[playerid][pAge],NacionalitySite,ClanIs,JobAccount);
}
ShowPlayerDialog(playerid, DIALOG_CUENTA, DIALOG_STYLE_MSGBOX, "Your Account", stringaccount, "Ok", "");
return 1;
}
Image:


Sorry for dialog image in spanish :S
in short words: only shows a line and no other


Re: [Help] Dialogs.. - ChandraLouis - 24.04.2014

Full code pls ?
pawn Код:
new stringaccount[1024];
{
    format(stringaccount, sizeof(stringaccount), "{FFFE6B}Level{FFFFFF}: %d | {FFFE6B}Exp{FFFFFF}: %d/%d | {FFFE6B}Money in hand{FFFFFF}: %d | {FFFE6B}Admin{FFFFFF}: %d\n",PlayerInfo[playerid][pLvel],PlayerInfo[playerid][pExp],ExpRequest,PlayerInfo[playerid][pMoney],PlayerInfo[playerid][pAdminMS]);
    format(stringaccount, sizeof(stringaccount), "{FFFE6B}Sex{FFFFFF}: %s |{FFFE6B}Age{FFFFFF}: %d  | {FFFE6B}Nacionality{FFFFFF}: %s | {FFFE6B}Clan{FFFFFF}: %s {FFFE6B}Job{FFFFFF}: %s", gender, PlayerInfo[playerid][pAge],NacionalitySite,ClanIs,JobAccount);
    ShowPlayerDialog(playerid, DIALOG_CUENTA, DIALOG_STYLE_MSGBOX, "Your Account", stringaccount, "Ok", "");
    return 1;
}
Maybe that fix it


Re: [Help] Dialogs.. - BroZeus - 24.04.2014

pawn Код:
new stringaccount[1024],str[500];
format(stringaccount, sizeof(stringaccount), "{FFFE6B}Level{FFFFFF}: %d | {FFFE6B}Exp{FFFFFF}: %d/%d | {FFFE6B}Money in hand{FFFFFF}: %d | {FFFE6B}Admin{FFFFFF}: %d",PlayerInfo[playerid][pLvel],PlayerInfo[playerid][pExp],ExpRequest,PlayerInfo[playerid][pMoney],PlayerInfo[playerid][pAdminMS]);
format(str, sizeof(str), "\n{FFFE6B}Sex{FFFFFF}: %s |{FFFE6B}Age{FFFFFF}: %d  | {FFFE6B}Nacionality{FFFFFF}: %s | {FFFE6B}Clan{FFFFFF}: %s {FFFE6B}Job{FFFFFF}: %s", gender, PlayerInfo[playerid][pAge],NacionalitySite,ClanIs,JobAccount);
strcat(stringaccount,str,sizeof(stringaccount));
ShowPlayerDialog(playerid, DIALOG_CUENTA, DIALOG_STYLE_MSGBOX, "Your Account", stringaccount, "Ok", "");
return 1;



Re: [Help] Dialogs.. - juandiegox - 24.04.2014

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
pawn Код:
new stringaccount[1024],str[500];
format(stringaccount, sizeof(stringaccount), "{FFFE6B}Level{FFFFFF}: %d | {FFFE6B}Exp{FFFFFF}: %d/%d | {FFFE6B}Money in hand{FFFFFF}: %d | {FFFE6B}Admin{FFFFFF}: %d",PlayerInfo[playerid][pLvel],PlayerInfo[playerid][pExp],ExpRequest,PlayerInfo[playerid][pMoney],PlayerInfo[playerid][pAdminMS]);
format(str, sizeof(str), "\n{FFFE6B}Sex{FFFFFF}: %s |{FFFE6B}Age{FFFFFF}: %d  | {FFFE6B}Nacionality{FFFFFF}: %s | {FFFE6B}Clan{FFFFFF}: %s {FFFE6B}Job{FFFFFF}: %s", gender, PlayerInfo[playerid][pAge],NacionalitySite,ClanIs,JobAccount);
strcat(stringaccount,str,sizeof(stringaccount));
ShowPlayerDialog(playerid, DIALOG_CUENTA, DIALOG_STYLE_MSGBOX, "Your Account", stringaccount, "Ok", "");
return 1;
Thank u very much