13.08.2018, 20:27
try now
PHP код:
public Vendor_Load()
{
for(new i, j = cache_num_rows(); i != j; i++)
{
if(i < MAX_VENDORS)
{
VendorData[i][vendorExists] = true;
cache_get_value_int(i,"vendorID",VendorData[i][vendorID]);
cache_get_value_int(i,"vendorType",VendorData[i][vendorType]);
cache_get_value_float(i, "vendorX",VendorData[i][vendorPos][0]);
cache_get_value_float(i, "vendorY",VendorData[i][vendorPos][1]);
cache_get_value_float(i, "vendorZ",VendorData[i][vendorPos][2]);
cache_get_value_float(i, "vendorA",VendorData[i][vendorPos][3]);
cache_get_value_int(i,"vendorInterior",VendorData[i][vendorInterior]);
cache_get_value_int(i,"vendorWorld",VendorData[i][vendorWorld]);
Vendor_Refresh(i);
}
}
return 1;
}