10.03.2018, 19:12
They do not come out well, with the previous update it was perfect.
http://i1029.photobucket.com/albums/...psv630rjsx.png
http://i1029.photobucket.com/albums/...psv630rjsx.png
PHP код:
new string[132], DBResult:qresult, rows;
format(string, sizeof(string), "SELECT `NOMBRE`,`ID`,`VID`,`PRECIO` FROM `VDEPORT` WHERE `TIPO` = '1' ORDER BY (`ID` * 1) ASC limit 30");
qresult = db_query(ZLDB, string);
rows = db_num_rows(qresult);
static Query[120], DBResult:Result;
if(rows)
{
new final_string[32 * sizeof(string)];
new Nombre[50], MiID, Estado[50];
new Precio, LaID, VID;
for(new i = 0; i < rows; i ++)
{
SetDialogPreviewRotation (playerid, i, -16.0, 0.0, -55.0, 1.20);
db_get_field_assoc(qresult, "NOMBRE", Nombre, sizeof(Nombre));
LaID = db_get_field_assoc_int(qresult, "ID");
VID = db_get_field_assoc_int(qresult, "VID");
Precio = db_get_field_assoc_int(qresult, "PRECIO");
JugadorDato[playerid][zConteoPrecio][i] = Precio;
format(Query, sizeof(Query), "SELECT `ID` FROM `VCOM` WHERE `NUMITEM` = '%d' AND `TIPO` = '1' AND `ID` = '%d' COLLATE NOCASE", LaID, JugadorInfo[playerid][zMiID]);
Result = db_query(ZLDB, Query);
if(db_num_rows(Result)) MiID = db_get_field_assoc_int(qresult, "ID");
JugadorDato[playerid][zConteoID][i] = MiID;
JugadorDato[playerid][zVID][i] = VID;
format(Estado,sizeof(Estado),LaID != MiID ? ( "~y~%d G" ) : ( "~b~Usar" ),Precio);
db_free_result(Result);
format(string, sizeof(string), "%i\t%s~n~~n~~n~~n~%s\n", VID, Nombre, Estado);
strcat(final_string, string);
db_next_row(qresult);
}
ShowPlayerDialog(playerid,DIALOG_MAUTOS+1, DIALOG_STYLE_PREVIEW_MODEL, "Deportivos", final_string, "Seleccionar", "Atrбs");
PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
}
db_free_result(qresult);