dini help
#1

how would i save & load this

Код:
intut[playerid] = 0;
in dini?

thanks
Reply
#2

We got the functions dini_IntSet (write) and dini_Int (read) for that

pawn Код:
new Playername[MAX_PLAYER_NAME],file[40];
GetPlayerName(playerid,Playername,sizeof(Playername));
format(file,sizeof(file),"Accounts/%s.ini",Playername);
dini_IntSet(file,"intut",intut[playerid]);
This is how we write...

pawn Код:
new Playername[MAX_PLAYER_NAME],file[40];
GetPlayerName(playerid,Playername,sizeof(Playername));
format(file,sizeof(file),"Accounts/%s.ini",Playername);
intut[playerid] = dini_Int(file,"intut");
And this is how we read.
Reply
#3

Quote:
Originally Posted by Jochemd
Посмотреть сообщение
We got the functions dini_IntSet (write) and dini_Int (read) for that

pawn Код:
new Playername[MAX_PLAYER_NAME],file[40];
GetPlayerName(playerid,Playername,sizeof(Playername));
format(file,sizeof(file),"Accounts/%s.ini",Playername);
dini_IntSet(file,"intut",intut[playerid]);
This is how we write...

pawn Код:
new Playername[MAX_PLAYER_NAME],file[40];
GetPlayerName(playerid,Playername,sizeof(Playername));
format(file,sizeof(file),"Accounts/%s.ini",Playername);
intut[playerid] = dini_Int(file,"intut");
And this is how we read.
thank you so much<333
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)