Help please
#1

There is a way to set on all files the string AccountLocked=0 or 1

i'll explain better

Folder : Accounts



/// In Folder Accounts we have

Name_Surname.ini
Name_Sname.ini

I want just set the key "AccountLoecked=0" to all files

i tried with dini but nothing happned

Anyone can help me please?
Reply
#2

new file[50],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(file,sizeof(file),"Accounts/%s.ini",name);
if(dini_Exists(file)){
dini_IntSet(file,"AccountLocked",0 or 1);}else if(!dini_Exists(file)){
dini_Create(file);
dini_IntSet(file,"AccountLocked",0 or 1);}
}
Reply
#3

sorry if i post now..
anyway thanks , solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)