SA-MP Forums Archive
LOL Strange (Haven`t seen this before) - 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: LOL Strange (Haven`t seen this before) (/showthread.php?tid=349542)



LOL Strange (Haven`t seen this before) - Sanady - 09.06.2012

Hello everybody.I haven`t seen this before but it`s very strange bug

SS:


CODE:
pawn Код:
CMD:stats(playerid,params[])
{
    new string[150],pName[MAX_PLAYER_NAME],h,m,s;
    GetPlayerName(playerid,pName,sizeof(pName));
    format(string,sizeof(string),""embed_blue"%s "embed_white"stats\n\
                                "
embed_blue"Admin Level:"embed_white"%d\n\
                                "
embed_blue"Money:"embed_white"%d$\n\
                                "
embed_blue"Score:"embed_white"%d\n\
                                "
embed_blue"Kills:"embed_white"%d\n\
                                "
embed_blue"Deaths:"embed_white"%d\n\
                                "
embed_blue"Total In Game Time:"embed_white"%d,%d,%d",
                                pName,
                                pInfo[playerid][pLevel],
                                pInfo[playerid][pMoney],
                                pInfo[playerid][pScore],
                                pInfo[playerid][pKills],
                                pInfo[playerid][pDeaths],
                                h,
                                m,
                                s);

    ShowPlayerDialog(playerid,DIALOG_STYLE_MSGBOX,1234,""embed_white"Stats",string,"Ok","");
    return 1;
}



Re: LOL Strange (Haven`t seen this before) - Azazelo - 09.06.2012

chek you
Код:
ShowPlayerDialog(playerid,DIALOG_STYLE_MSGBOX,1234,
Replace with

Код:
ShowPlayerDialog(playerid,1234,DIALOG_STYLE_MSGBOX
Edit:

You are change place of dialog id and dialog style


Re: LOL Strange (Haven`t seen this before) - JhnzRep - 09.06.2012

ShowPlayerDialog(playerid,1234,DIALOG_STYLE_MSGBOX ,""embed_white"Stats",string,"Ok","");

Dafaq? How is this possible, your using the MSGBOX style, but your SS is showing the password style...

Did you show us the wrong script?


Re: LOL Strange (Haven`t seen this before) - leonardo1434 - 09.06.2012

Conflicts between dialogs. Just Change the dialog's id's, it may fix.