- 0
[Problema]Creare masini.
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
AnoXis
Hai salut, pai am inceput sa fac un sistem de masini dinamice, tot-ul cu mysql etc etc..
Pai am facut, se salveaza, comenzile merg, se incarca din baza de date, dar pe server nu apar masinile adica nu le creaza
Am stat 2 ore sa ma gandesc la asta cu crearea dar nu inteleg ce are ..
P.S In consola imi apare cate masini s-au incarcat din baza de date
Dar pe server nu se "spawneaza" sa zic asa ..
function LoadVehicles() { masinidyn = cache_num_rows(); for(new c = 0; c < masinidyn; c++) { new id = cache_get_field_content_int(c, "vehicleID"); VehicleInfo[id][vehID] = cache_get_field_content_int(c, "vehicleID"); VehicleInfo[id][vehIDOwner] = cache_get_field_content_int(c, "vehicle_IDz"); cache_get_field_content(c, "veh_Owner", VehicleInfo[id][vehOwner], handle, 130); VehicleInfo[id][vehTaken] = cache_get_field_content_int(c, "veh_Taken"); VehicleInfo[id][veh_PosX] = cache_get_field_content_int(c, "veh_PosX"); VehicleInfo[id][veh_PosY] = cache_get_field_content_int(c, "veh_PosY"); VehicleInfo[id][veh_PosZ] = cache_get_field_content_int(c, "veh_PosZ"); VehicleInfo[id][veh_PosA] = cache_get_field_content_int(c, "veh_PosA"); VehicleInfo[id][vehINT] = cache_get_field_content_int(c, "veh_Int"); VehicleInfo[id][vehVW] = cache_get_field_content_int(c, "veh_VW"); VehicleInfo[id][vehModel] = cache_get_field_content_int(c, "veh_Model"); VehicleInfo[id][vehColor1] = cache_get_field_content_int(c, "veh_Color1"); VehicleInfo[id][vehColor2] = cache_get_field_content_int(c, "veh_Color2"); VehicleInfo[id][vehFaction] = cache_get_field_content_int(c, "veh_Faction"); CreateVehicle(VehicleInfo[c][vehModel], VehicleInfo[c][veh_PosX], VehicleInfo[c][veh_PosY], VehicleInfo[c][veh_PosZ], VehicleInfo[c][veh_PosA], VehicleInfo[c][vehColor1], VehicleInfo[c][vehColor2], -1); } print(""); printf("%d vehicule incarcate", masinidyn); }Edited by AnoXis2 answers to this question
Recommended Posts