want to know something please read it
#3

Lets say your account database structure is like this :
Код:
users/userName.ini
So when a user types say, "/check test"
Then you will check whether a file like this exits or not :
Код:
users/test.ini
If not then send the player a message like "no such player in database!"

If yes then load the player info like you load when player logs in. Only difference: load it in different variable.
When i used to use ini systems what i did was that I used to declare player info variable like this :
Код:
new playerInfo[MAX_PLAYERS + 1];
See the "+1" here? I used to load offline player info in this extra index.

EDIT: late
Reply


Messages In This Thread
want to know something please read it - by javedali1211 - 12.08.2016, 07:21
Re: want to know something please read it - by Stinged - 12.08.2016, 07:52
Re: want to know something please read it - by BroZeus - 12.08.2016, 07:57
Re: want to know something please read it - by javedali1211 - 12.08.2016, 09:32
Re: want to know something please read it - by Stinged - 12.08.2016, 09:40
Re: want to know something please read it - by javedali1211 - 12.08.2016, 10:38
Re: want to know something please read it - by Stinged - 12.08.2016, 11:21
Re: want to know something please read it - by javedali1211 - 12.08.2016, 11:58
Re: want to know something please read it - by Stinged - 12.08.2016, 12:00
Re: want to know something please read it - by javedali1211 - 12.08.2016, 18:39

Forum Jump:


Users browsing this thread: 2 Guest(s)