[Help] Dialogs..
#1

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
Reply
#2

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
Reply
#3

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;
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)