no me carga bien autos mysql
#1

hola tengo un sistema de autos mysql el problema es que no me carga los autos si el dueсo tiene 2 autos me carga 1 y si tiene uno no me carga niguno

Quote:

forward OnPlayerCarsLoad(playerid);
public OnPlayerCarsLoad(playerid)
{
new num_fields,num_rows;
cache_get_data(num_rows,num_fields,TuberiasMySQL);
if(!num_rows)return 1;
for(new i=0; i<num_rows; i++)
{
if(i >= MAX_VEH_PER_PLAYER)
{
print("Se ha alcanzado el mбximo de vehiculos para cargar");
break;
}
SCM(playerid, -1, "HOLA");
new f[50];
new id=getFreeCarID();
//cache_get_field_content(i,"vid", f);VehicleInfo[id][vvid] = strval(f);
cache_get_field_content(i,"vkey", f);VehicleInfo[id][VKEY] = strval(f);
cache_get_field_content(i,"dueno",VehicleInfo[id][VD]);
cache_get_field_content(i,"slot", f);VehicleInfo[id][slot] = strval(f);
cache_get_field_content(i,"posx", f);VehicleInfo[id][vposx] = floatstr(f);
cache_get_field_content(i,"posy", f);VehicleInfo[id][vposy] = floatstr(f);
cache_get_field_content(i,"posa", f);VehicleInfo[id][vposz] = floatstr(f);
cache_get_field_content(i,"vangle", f);VehicleInfo[id][vangle] = floatstr(f);
cache_get_field_content(i,"vmodelid", f);VehicleInfo[id][vmodelid] = strval(f);
cache_get_field_content(i,"vcolor1", f);VehicleInfo[id][vcolor1] = strval(f);
cache_get_field_content(i,"vcolor2", f);VehicleInfo[id][vcolor2] = strval(f);
cache_get_field_content(i,"vpaintjob", f);VehicleInfo[id][vpaintjob] = strval(f);
cache_get_field_content(i,"vm1", f);VehicleInfo[id][mod1] = strval(f);
cache_get_field_content(i,"vm2", f);VehicleInfo[id][mod2] = strval(f);
cache_get_field_content(i,"vm3", f);VehicleInfo[id][mod3] = strval(f);
cache_get_field_content(i,"vm4", f);VehicleInfo[id][mod4] = strval(f);
cache_get_field_content(i,"vm5", f);VehicleInfo[id][mod5] = strval(f);
cache_get_field_content(i,"vm6", f);VehicleInfo[id][mod6] = strval(f);
cache_get_field_content(i,"vm7", f);VehicleInfo[id][mod7] = strval(f);
cache_get_field_content(i,"vm8", f);VehicleInfo[id][mod8] = strval(f);
cache_get_field_content(i,"vm9", f);VehicleInfo[id][mod9] = strval(f);
cache_get_field_content(i,"vm10", f);VehicleInfo[id][mod10] = strval(f);
cache_get_field_content(i,"vm11", f);VehicleInfo[id][mod11] = strval(f);
cache_get_field_content(i,"vm12", f);VehicleInfo[id][mod12] = strval(f);
cache_get_field_content(i,"vm13", f);VehicleInfo[id][mod13] = strval(f);
cache_get_field_content(i,"vm14", f);VehicleInfo[id][mod14] = strval(f);
cache_get_field_content(i,"vm15", f);VehicleInfo[id][mod15] = strval(f);
cache_get_field_content(i,"vm16", f);VehicleInfo[id][mod16] = strval(f);
cache_get_field_content(i,"vm17", f);VehicleInfo[id][mod17] = strval(f);
cache_get_field_content(i,"vstatus", f);VehicleInfo[id][VSTATUS] = strval(f);
cache_get_field_content(i,"vhealth", f);VehicleInfo[id][VehicleHealth] = floatstr(f);
cache_get_field_content(i,"vpanels", f);VehicleInfo[id][VPanels] = strval(f);
cache_get_field_content(i,"vdoors", f);VehicleInfo[id][VDoors] = strval(f);
cache_get_field_content(i,"vlights", f);VehicleInfo[id][VLights] = strval(f);
cache_get_field_content(i,"vtires", f);VehicleInfo[id][VTires] = strval(f);
ChangeVehiclePaintjob(i, VehicleInfo[id][vpaintjob]);
VehicleInfo[id][vvid] = CreateVehicle(VehicleInfo[id][vmodelid], VehicleInfo[id][vposx],VehicleInfo[id][vposy], VehicleInfo[id][vposz],VehicleInfo[id][vangle], VehicleInfo[id][vcolor1], VehicleInfo[id][vcolor2], 200000);
SetVehicleToRespawn(VehicleInfo[id][vvid]);

si me ayudan le agradesco
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)