Page 1 of 1
Settings and points system
Posted: Tue Oct 02, 2012 4:54 am
by pip
Hi i need help i am making a super secret project XD, and i am having a small problem i want to use settings to save and load points. so i go to settings and put points but do i use string or integer? what i want it like on form load it loads the number of points so i put label2.text = my.settings.points.tostring and it worked, but now i want to make a save spot so it replaces the value like let's say you had 0 points and you earned 5 well after it adds i want it to save that can anyone help??

Re: Settings and points system
Posted: Tue Oct 02, 2012 6:51 am
by muttley1968
yh just use my.settings.points = label2.text +Val my.settings.points and do it as a string save conversion :P Should work i have used a similar code before in a project i have built any probs PM me :P
Re: Settings and points system
Posted: Tue Oct 02, 2012 8:39 pm
by pip
#muttley1968, i did not explain good enough so anyways ok i have points as setting it is a string/integer idk you should tell me, but i am making it like after you complete one objective it adds those points on the form close and unlocks the ahcievement so i need this for every form close i make for it to save the points and the form1 load is my.settings.points.load but is it suppose to be string or integer? and what code could i use I need a better explenation if possible. dunnno;
Re: Settings and points system
Posted: Tue Oct 02, 2012 9:10 pm
by muttley1968
Um i could not think of a way to explain exactly what i meant so instead i have made thsi quick example odvisly it will need alot of changing for your
project but it explains how the system works and shows the settings ect :P
Example.rar
Re: Settings and points system
Posted: Tue Oct 02, 2012 9:46 pm
by pip
muttley1968 wrote:Um i could not think of a way to explain exactly what i meant so instead i have made thsi quick example odvisly it will need alot of changing for your
project but it explains how the system works and shows the settings ect :P
Example.rar
#muttley1968 Thanks i'll check this out and let you know!
Edit: thanks mutt lol works good! if you want to help me i might need it so if got skype can you pm me your skype id? and i can add you