Reseting files variable help.
#1

Hey everyone,

I have one problem, cannot to make a system, which resets all registered players variable. I mean, i have variable Car, and i want to set it to amount 1. But, to set it in the player file ( dini ). If i will make using for(new i=0..) i guess my server crashes.
Got any ideas?
Thanks.

P.S. Files saved by player name.
Reply
#2

Anyone?
Reply
#3

Why should it crash if you use for(...)
Reply
#4

a,b,c,d....z
How much letters? So think how much different ways.. Millions of millions.
Reply
#5

Show us your resetting code.
Reply
#6

Код:
format(file,sizeof(file),"\\Accounts\\%s.ini",playerName);
if(dini_Exists(file))
{
dini_IntSet(file,"Car",1);
}
But i need it to loop and to reset for all registered players. If the file's be ordered by a numbers - no problems, but now by a player's name's. Here is the problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)