[HELP]:Vehicle System, Load And Save - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]:Vehicle System, Load And Save (
/showthread.php?tid=246212)
[HELP]:Vehicle System, Load And Save -
eDz0r - 03.04.2011
So... From This
Tutorial I Write This. So How I Make Load And Save CallBacks Because I Don't Get It
.
With Dini Of Course
pawn Код:
#include <a_samp>
#include <dini>
enum vInfo
{
vModelID,
vX,
vY,
vZ,
vA,
vC1,
vC2,
vOwned,
vOwner[MAX_PLAYER_NAME],
vPrice,
};
new VehicleShopInfo[MAX_VEHICLES][vInfo];
new bool:IsValidVehicle[MAX_VEHICLES];
stock GetFreeVehicleSlot()
{
for(new vID = 0; vID < sizeof(VehicleShopInfo); vID ++)
{
if(!VehicleShopInfo[i]) return i;
}
return -1;
}
stock CreateShopVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, owned, owner, price)
{
new vID = GetFreeVehicleSlot();
VehicleShopInfo[vID][vModelID] = modelid
VehicleShopInfo[vID][vX] = x
VehicleShopInfo[vID][vY] = y
VehicleShopInfo[vID][vZ] = z
VehicleShopInfo[vID][vA] = angle
VehicleShopInfo[vID][vC1] = color1
VehicleShopInfo[vID][vC2] = color2
VehicleShopInfo[vID][vOwned] = owned
VehicleShopInfo[vID][vOwner] = owner
VehicleShopInfo[vID][vPrice] = price
IsValidVehicle[vID] = true;
CreateVehicle(modelid, x, y, z, angle, color1, color2, 0);
return vID;
}
Re: [HELP]:Vehicle System, Load And Save -
eDz0r - 05.04.2011
Bump
Re: [HELP]:Vehicle System, Load And Save -
Medal Of Honor team - 05.04.2011
so what is your error or you problem or what you don't get?
Re: [HELP]:Vehicle System, Load And Save -
eDz0r - 06.04.2011
How I Make Load And Save CallBacks