SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 14/01/2011, 04:58 PM   #11
Jochemd
High-roller
 
Jochemd's Avatar
 
Join Date: Jul 2009
Location: The Netherlands
Posts: 2,220
Reputation: 844
Default Re: Y_INI [HELP]

File created?
__________________
Jochemd is offline  
Old 14/01/2011, 05:19 PM   #12
park4bmx
High-roller
 
park4bmx's Avatar
 
Join Date: Dec 2009
Location: Samokov,Bulgaria
Posts: 2,364
Reputation: 240
Question Re: Y_INI [HELP]

Quote:
Originally Posted by Jochemd View Post
File created?
No it doesnt CREAT THE FILE i tried doing it with DINI and it didnt work so what could be the problem??
park4bmx is offline  
Old 15/01/2011, 09:13 AM   #13
park4bmx
High-roller
 
park4bmx's Avatar
 
Join Date: Dec 2009
Location: Samokov,Bulgaria
Posts: 2,364
Reputation: 240
Default Re: Y_INI [HELP]

Why doesnt it WORK
i am trying to save Score,Health with Y_ini & it isnt really working
This is the SCRIPT
pawn Code:
new gName[MAX_PLAYER_NAME];
new gScore;
new gMoney;

INI:UserFiles[](name[], value[])
{
    INI_String("NAME", gName, sizeof(gName));
    INI_Int("SCORE", gScore);
    INI_Int("MONEY", gMoney);
    return 0;
}

if(strcmp(cmd,"/test",true) == 0){
new INI:PlayerAccount = INI_Open("UserFiles.ini");
INI_WriteInt(PlayerAccount,"MONEY",5000);
INI_WriteInt(PlayerAccount,"SCORE",10);
INI_Close(PlayerAccount);
}
}
park4bmx is offline  
Old 15/01/2011, 03:15 PM   #14
park4bmx
High-roller
 
park4bmx's Avatar
 
Join Date: Dec 2009
Location: Samokov,Bulgaria
Posts: 2,364
Reputation: 240
Default Re: Y_INI [HELP]

Anyone know what the problem is ??
park4bmx is offline  
Old 15/01/2011, 03:18 PM   #15
Zh3r0
High-roller
 
Join Date: Mar 2008
Posts: 4,510
Reputation: 398
Default Re: Y_INI [HELP]

Check this. Might help you.

http://forum.sa-mp.com/showthread.php?t=210277
__________________
Zh3r0 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
Y_ini help. Haydz Help Archive 0 12/01/2011 11:35 AM
dini_Exists in y_ini GiS Help Archive 18 08/01/2011 04:54 PM
Y_Ini. Zh3r0 Help Archive 1 15/10/2010 09:00 PM


All times are GMT. The time now is 02:51 PM.


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