Mysql + dialog help
#1

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)