Y_ini problem - 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 problem (
/showthread.php?tid=526536)
Y_ini problem -
Xenforox - 18.07.2014
I've been trying to make a warn system, i've added:
Код:
Warning1[256],
Warning2[256],
Warning3[256],
in my player enum i've made the command and made the format of the string this way
Код:
format(PlayerInfo[id][Warning1], 255, "%s (from %s)", reason, GetName(playerid));
it compiled but when i tested it, i get some random numbers instead of a string!! Can i have some help please.
Re: Y_ini problem -
BornHuman - 18.07.2014
(I'm haven't used Y_INI, but I've used dini.)
Are you by any chance saving an integer?
If you are using
INI_WriteInt
You should be using
INI_WriteString
Confused? See this page:
https://sampforum.blast.hk/showthread.php?tid=175565
Re : Y_ini problem -
Xenforox - 18.07.2014
Let me test.
Re : Y_ini problem -
Xenforox - 18.07.2014
It's not working for some reason
i have this
Код:
INI_WriteString(File,"Warning1","None");
INI_WriteString(File,"Warning2","None");
INI_WriteString(File,"Warning3","None");
but in the user's file, it's just
Код:
Warning1:
Warning2:
Warning3:
Re: Y_ini problem -
rockhopper - 18.07.2014
Show enums