Y_ini problem
#1

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

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

Let me test.
Reply
#4

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:
Reply
#5

Show enums
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)