SA-MP Forums Archive
Mysql + dialog help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Mysql + dialog help (/showthread.php?tid=184941)



Mysql + dialog help - iJumbo - 22.10.2010

hi i make a command thath show a list by reading in mysql db
pawn Код:
dcmd_membri(playerid,params[])
{
    #pragma unused params
    new ListaDialogoMembri[256];
    new Querya[128];
    new line[256];
    format(Querya, sizeof(Querya), "SELECT * FROM ListaMembri");
    mysql_query(Querya);
    if(mysql_errno() == 0) printfc(CONSOLE_RED,"Query Fatta Presi dati membri per %s",Name(playerid));
    mysql_store_result();
    if(mysql_fetch_row(line))
    {
        sscanf(line, "s[256]",ListaDialogoMembri);
    }
    ShowPlayerDialog(playerid, 8, DIALOG_STYLE_MSGBOX, "....:::::MEMBRI CLAN ISS::::....",ListaDialogoMembri, "OK", "OK");
    return 1;
}
the code work soooooooo good but when i go to type \n i get it dysplayed ingame like name \n name and no make a new line why?


Re: Mysql + dialog help - iJumbo - 23.10.2010

bump but idk if 12 hr passed lol prob 11 or 13


Re: Mysql + dialog help - iJumbo - 23.10.2010

OMGF no one know this !!! wtf?!?!?!!?