SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 21/05/2013, 10:36 PM   #1
kristijan250
Little Clucker
 
Join Date: Sep 2012
Posts: 19
Reputation: 0
Default YINI

Can anyone transfer me this in yini stock[code] UpdateMyVehSystem(id)
{
new GSi[256];
new place[64];
if(!dini_Exists(SaveFile))
{
dini_Create(SaveFile);
}
format(GSi,sizeof(GSi),
"%d,%d,\
%f,%f,%f,%f,\
%d,%d,%d,\
%s,\
%d,\
%d,%d,%d,%d,\
%d",
MyVehicle[id][MyVehSlot],MyVehicle[id][MyVehModel],
MyVehicle[id][MyVehPos][0],MyVehicle[id][MyVehPos][1],MyVehicle[id][MyVehPos][2],MyVehicle[id][MyVehPos][3],
MyVehicle[id][MyVehCol][0],MyVehicle[id][MyVehCol][1],MyVehicle[id][MyVehLock],
MyVehicle[id][MyVehOwner], // string
MyVehicle[id][MyVehAlarm],
MyVehicle[id][MyVehCar],MyVehicle[id][MyVehBike],MyVehicle[id][MyVehBoat],MyVehicle[id][MyVehPlane],
MyVehicle[id][MyVehFsale]);
format(place,sizeof(place),"Vozilo_%d",id);
dini_Set(SaveFile,place,GSi);
printf("ID %d SET",id);
if(MyVehicle[id][MyVehSlot] == 0)
{
format(GSi,sizeof(GSi),
"%d,%d,\
%f,%f,%f,%f,\
%d,%d,%d,\
%s,\
%d,\
%d,%d,%d,%d,\
%d",
MyVehicle[id][MyVehSlot],MyVehicle[id][MyVehModel],
MyVehicle[id][MyVehPos][0],MyVehicle[id][MyVehPos][1],MyVehicle[id][MyVehPos][2],MyVehicle[id][MyVehPos][3],
MyVehicle[id][MyVehCol][0],MyVehicle[id][MyVehCol][1],MyVehicle[id][MyVehLock],
MyVehicle[id][MyVehOwner], // string
MyVehicle[id][MyVehAlarm],
MyVehicle[id][MyVehCar],MyVehicle[id][MyVehBike],MyVehicle[id][MyVehBoat],MyVehicle[id][MyVehPlane],
MyVehicle[id][MyVehFsale]);
format(place,sizeof(place),"Vozilo_%d",id);
dini_Unset(SaveFile ,place);
printf("ID %d UNSET",id);
}
return 1;
}
kristijan250 is offline   Reply With Quote
Old 22/05/2013, 04:31 AM   #2
iGetty
High-roller
 
iGetty's Avatar
 
Join Date: Sep 2010
Location: Falkirk, Scotland
Posts: 1,753
Reputation: 224
Default Re: YINI

Wrap it in [ pawn] [ /pawn ] tags, without the spaces.
iGetty is offline   Reply With Quote
Reply

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
[PHP/Yini] PHP Yini reading from file DarkPower Scripting Help 4 10/01/2013 06:01 PM
[Help]YINI UCP SonY_ Scripting Help 5 10/09/2012 12:13 PM
yINI moadi Scripting Help 3 30/10/2011 08:32 PM
YINI help OUL Scripting Help 4 22/09/2011 04:35 PM
yini help :S OUL Scripting Help 8 04/09/2011 04:30 PM


All times are GMT. The time now is 11:38 AM.


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