Question:
#1

Hello,i want to ask is there a way to loop through all players?I mean offline players too.
Reply
#2

I highly doubt it, the only possible way I can think of doing it, is if you're saving each user's file to a number instead of their actual name.
Reply
#3

If you are working with a mysql database it will be very easy since you just have to loop through your table.
In files it'd be a little bit harder (if you want to get info on the player instead of just their names) because you'd have to open each file.
Reply
#4

Quote:
Originally Posted by mamorunl
Посмотреть сообщение
If you are working with a mysql database it will be very easy since you just have to loop through your table.
In files it'd be a little bit harder (if you want to get info on the player instead of just their names) because you'd have to open each file.
Unfortunately i am not so advanced of a scripter and i am using Dini.
Reply
#5

In that case, don't even attempt it.
Reply
#6

Quote:
Originally Posted by Penki4a
Посмотреть сообщение
Unfortunately i am not so advanced of a scripter and i am using Dini.
DINI is a pretty old system already and was developed for 0.2 I'd recommend changing your file system to either DJSON (also from DracoBlue) or even MySQL which will be better in your case if you want to do tasks like this.

Else, you would have the task of going through every file and finding the information you want.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)