06.12.2015, 09:44
So I copyed this DS https://www.youtube.com/watch?v=1sETwYLz3cw to my GM.
It works perfect. Commands + system. But when I use /buyvehicle it dosen't load any vehicle from database.
So it shows me only the DS textdraws. On the original GM rg3 it works perfectly and load the DS Cars.
But on my GM it doesnt load anything.
Here are the codes:
It works perfect. Commands + system. But when I use /buyvehicle it dosen't load any vehicle from database.
So it shows me only the DS textdraws. On the original GM rg3 it works perfectly and load the DS Cars.
But on my GM it doesnt load anything.
Here are the codes:
Код:
function LoadDSVeh() { dsvehs = cache_num_rows(); for(new i = 1; i <= dsvehs; i++) { new j = i - 1; DSModels[i][dID] = i; DSModels[i][dModel] = cache_get_field_content_int(j, "Model"); DSModels[i][dPrice] = cache_get_field_content_int(j, "Price"); DSModels[i][dStock] = cache_get_field_content_int(j, "Stock"); DSModels[i][dDoors] = cache_get_field_content_int(j, "Doors"); cache_get_field_content(j, "Type", DSModels[i][dType], SQL, 129); DSModels[i][dMaxSpeed] = cache_get_field_content_int(j, "MaxSpeed"); } printf("[MYSQL] Dealership Vehicles: %d", dsvehs); }
Код:
function LoadSystems() { new query[128]; mysql_format(SQL, query, sizeof(query), "SELECT * FROM `dsveh`"); mysql_tquery(SQL, query, "LoadDSVeh", ""); }