y_ini question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: y_ini question (
/showthread.php?tid=507491)
y_ini question -
DarkLored - 17.04.2014
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.
Re: y_ini question -
DarkLored - 17.04.2014
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
Re: y_ini question -
DarkLored - 18.04.2014
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
Re: y_ini question -
Dziugsas - 18.04.2014
I think you can't save string and then change it into integer , if you're asking for that...
Re: y_ini question -
BroZeus - 18.04.2014
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);