SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 03/04/2011, 02:11 PM   #1
eDz0r
Huge Clucker
 
eDz0r's Avatar
 
Join Date: Apr 2010
Location: Constanta, Romania
Posts: 425
Reputation: 12
Question [HELP]:Vehicle System, Load And Save

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 Code:
#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;
}

Last edited by eDz0r; 06/04/2011 at 10:48 AM.
eDz0r is offline  
Old 05/04/2011, 11:44 AM   #2
eDz0r
Huge Clucker
 
eDz0r's Avatar
 
Join Date: Apr 2010
Location: Constanta, Romania
Posts: 425
Reputation: 12
Default Re: [HELP]:Vehicle System, Load And Save

Bump
eDz0r is offline  
Old 05/04/2011, 02:17 PM   #3
Medal Of Honor team
Gangsta
 
Medal Of Honor team's Avatar
 
Join Date: Feb 2011
Location: Osama Bin Laden's house ;)
Posts: 538
Reputation: 2
Default Re: [HELP]:Vehicle System, Load And Save

so what is your error or you problem or what you don't get?
__________________
Making a Social Website from scratch. Need a PHP partner
Medal Of Honor team is offline  
Old 06/04/2011, 10:48 AM   #4
eDz0r
Huge Clucker
 
eDz0r's Avatar
 
Join Date: Apr 2010
Location: Constanta, Romania
Posts: 425
Reputation: 12
Default Re: [HELP]:Vehicle System, Load And Save

How I Make Load And Save CallBacks
eDz0r is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] Player Inventory System 0.2b (Menu + Save / Load) -zriptarusk Filterscripts 37 24/01/2014 07:08 PM
What wrong with this load a save house system ihatetn931 Help Archive 18 13/08/2010 07:19 AM
Needing help with save/load system noahg Help Archive 2 08/10/2009 01:18 PM
Help with Save&Load of a Car System.... Castle Help Archive 3 09/08/2009 11:42 PM
Vehicle buy\save system Klaymen Help Archive 4 03/08/2009 05:13 PM


All times are GMT. The time now is 05:22 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.