2 values in 1 .ini line?
#1

I want this inside the player's .ini file:
Код:
weapon = 26 590
where 26 is the weapon id and 590 the ammo. I know its possible because ****** mentions this y_ini's ability when demonstrating how to approach values from tag teams.

EDIT: I tried this: INI_WriteInt(File, "weapon", 0, 0); No error came up but I got this:
Код:
weapon = 0
instead of this:
Код:
weapon = 0 0
Reply
#2

Код:
[LVDM]
health = 4.23
pos = 2500 1968 7.3

[SFTDM]
health = 100
pos = -2134 -980 2
Anyway, is what I asked possible or not?
Reply
#3

If you are storing 2 integers, you can simply store it as a string.
pawn Код:
format("%i|%i", weaponID, ammoCount);
However, when loading, you will have to create a function that will split the string and return the two integers.
Reply
#4

I think it doesn't worth the hustle. I 'll go with two separate lines weapon= and ammo =
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)