Retrieving information from a .txt file.

Join Discord

lina

LOMCN Veteran
Veteran
Loyal Member
Jul 28, 2010
283
5
45
Poland
Hi guys, i have a problem, i need to know how i can retrive information stored in a .txt file and put it as an intiger.

When the information in the .txt file looks as the following:

[Main]
Nike=8

I want to take out, nike and 8 and put it as an integer. I cannot use:
Loadvalue D1 "Market_Def\licytacja2.txt" Main %USERNAME.

i want all players to retrieve the information "nike" and "8" therefore i cannot use %username to retrieve it.

So basicly i need to know how to load two peaces of information and set them as integer so that i can use it later on in a script.


Big thanks guys.


EDIT - PROBLEM IS SOLVED, HAD TO USE 2 .TXT FILES TO DO WHAT I WANTED TO.
 
Last edited: