Showing dynamic ShowPlayerDialog MySQL
#2

Код:
CMD:factions(playerid,params[]) return mysql_tquery(mysql, "SELECT `Name` FROM `Factions'", "LoadFactionsIG", "i",playerid);
forward LoadFactionsIG(playerid);
public LoadFactionsIG(playerid)
{
    if(playerid == INVALID_PLAYER_ID) return 1;
    new rows,fields,str[160];
    cache_get_data(rows,fields,mysql);
    if(!rows) return 1;
    new fracName[32];
    for (new i; i < rows; i++)
    {
        cache_get_field_content(i, "Name",fracName,mysql);
        format(str, sizeof(str), "%s%s  \n",str,fracName);
    }
    ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "Factions", str, "OK","");
    return 1;
}
Reply


Messages In This Thread
Showing dynamic ShowPlayerDialog MySQL - by DavidLuango - 31.07.2016, 07:06
Re: Showing dynamic ShowPlayerDialog MySQL - by Stuntff - 31.07.2016, 07:12
Re: Showing dynamic ShowPlayerDialog MySQL - by DavidLuango - 31.07.2016, 07:14

Forum Jump:


Users browsing this thread: 1 Guest(s)