Posts: 1,398
Threads: 25
Joined: Jan 2014
Reputation:
0
shwo how have u defined VEH_FILE
and also what is VehicleInfo[v][vValue] and how does it changes?
Posts: 1,398
Threads: 25
Joined: Jan 2014
Reputation:
0
i mean what does VehicleInfo[v][vValue] contain? how do you change it, where is this variable used?
Posts: 1,398
Threads: 25
Joined: Jan 2014
Reputation:
0
thats why when u are setting it to 200000 then how will it be 1
what do u exactly want that the format line should do?
Posts: 160
Threads: 36
Joined: Dec 2011
Reputation:
0
I want it to get the vehicle value...
Posts: 160
Threads: 36
Joined: Dec 2011
Reputation:
0
The vehicle value, which is 2000000, then give the player the money, which is the vehicle value
Posts: 1,398
Threads: 25
Joined: Jan 2014
Reputation:
0
oh that i didnt read the thread carefully
you cant read from file using "format"
what do u use for saving y_ini or dini and show us how u save its value in it
Posts: 1,398
Threads: 25
Joined: Jan 2014
Reputation:
0
where did u showed that how u save value in it?
You cannot read from files with format() function
Read the y_ini topic carefully to see how to read from files
Posts: 3,324
Threads: 96
Joined: Sep 2013
THE PROBLEM-
new vv = format(file, sizeof(file), VEH_FILE, VehicleInfo[v][vValue]);
format returns 1 because it worked, format does not store what you want...
You need to read the file like BroZues said... What file manager do you use? (EX: y_ini, dini, the default - from pawno, etc...)
Posts: 160
Threads: 36
Joined: Dec 2011
Reputation:
0
I use Y_Ini, please tell me how can I read the value and put the value in that variable?
Posts: 160
Threads: 36
Joined: Dec 2011
Reputation:
0
Can you make me an example? Please I'm a noob.