View Full Version : y_ini question

17/04/2014, 10:15 PM
Hello guys i am currently working on a roleplay gm but i am trying to figure out how can i save a string instead of integer in a file.

For exsample : Race None

but what i am now using is : Race 0

How can i make it as the exsample i showed you as a string and not an integer and how can i change the string so it won't get messed up.

18/04/2014, 12:05 AM
That didn't answer it what i asked how i make it change able when someone has None in his account and i use a command and how do i change it for exsample to Angel

18/04/2014, 01:23 AM
how can i make the string change when i change someone's race? via command what do i use?
when i tryed it in the past it would just spam my file with new strings that were written

18/04/2014, 09:22 AM
I think you can't save string and then change it into integer , if you're asking for that...

18/04/2014, 09:41 AM
use like this

INI_WriteString(Path,"RaceID", "None");//this when he has won no race that means when a player registers

//then this after he has won race for first time
INI_RemoveEntry(ini, "RaceID");
INI_WriteInt(Path,"RaceID", 1);