PDA

View Full Version : How to create + load from a document (txt)


Private200
21/03/2014, 02:02 PM
I want to create a document .txt where I will save a variable (number)

It is going to be used for my trucking future trucking server, and when I open it, I want that a +1 number get's called.

My point is:

When you create the document, the number in it is 0.

When you use a command in-game, it creates a +1 number and gives that number to the user.

Something like

PlayerInfo[playerid][pNumber] == filenumber+1
{
// shits
}

but also,I want that a +1 get's added to the file number.

I am not sure if you understood it, but...thanks.

Crazydriver
21/03/2014, 02:22 PM
use Dini or dubd to save
http://forum.sa-mp.com/showthread.php?t=31&highlight=dini

Private200
21/03/2014, 02:24 PM
I wont use DINI for saving.

Carac
21/03/2014, 02:45 PM
Use DUDB mate.

Private200
21/03/2014, 02:55 PM
Btw, why you keep telling me what to use? I want an example.