How to save all cars on a .txt file?
#1

Like every car on scriptifiles, on a .txt or .ini file, and when loads gamemode, it loads all cars on the F1Le.
Reply
#2

use djson or dini.. or fwrite
Reply
#3

Use sscanf and format.

For saving:
pawn Код:
format(string, "%d|%f|%f|%f|%f|other params", model, X, Y, Z, A);
For loading:
pawn Код:
sscanf(string, "p<|>dffff", X, Y, Z, A);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)