ini file
#1
Posted 21 May 2012 - 03:58 PM
#2
Posted 21 May 2012 - 04:00 PM
If you do want to do it this way you'll need to fetch the variable from the ini value , increase it and rewrite it to the ini file.
#3
Posted 21 May 2012 - 04:03 PM
Edited by ChefDavid22, 21 May 2012 - 04:34 PM.
#4
Posted 21 May 2012 - 04:05 PM
ok, but how do i check that, if the xp value or what you want to call it, is greater than the value in the ini file??Yes what Alex says - that put too much hog on resources for your game. Your best bet is to check at the end of the round and see if your new value is greater than the saved value, then override with the new value.
#5
Posted 21 May 2012 - 04:15 PM
Have a look at the guides in my signature and some of the other ones in the Tutorials section to get a better idea on how to use ini files.
#6
Posted 21 May 2012 - 04:29 PM
Oh, how stupid i amYou read the value from the ini file and store it in some variable. You should already be storing your xp in some other variable you simply check if variable B is greater than variable A and then if it is you write the value.
Have a look at the guides in my signature and some of the other ones in the Tutorials section to get a better idea on how to use ini files.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











