30.07.2015, 20:02
It is.
I think. Haven't scripted in a while.
PHP код:
CMD:news(playerid,params[])
{
new query[MAX_STRING], userstring[MAX_STRING];
format(query, sizeof(query), "SELECT * FROM News ORDER DESC");
mysql_query(query);
mysql_store_result();
while(mysql_fetch_row(query))
{
format(userstring, sizeof(userstring), "%s \n",userstring);
ShowPlayerDialog(playerid,DIALOG_DEALERSHIP,DIALOG_STYLE_LIST,"News",userstring,"Read","Close");
}
ShowPlayerDialog(playerid,DIALOG_DEALERSHIP,DIALOG_STYLE_LIST,"News",userstring,"Read","Close");