y_ini question
#1

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.
Reply
#2

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
Reply
#3

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
Reply
#4

I think you can't save string and then change it into integer , if you're asking for that...
Reply
#5

use like this
pawn Код:
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);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)