Userfile help please.
#1

Hey, how can I open a user file and check if the player is admin or not. I want a command that could show us all of the offline admins. I use YINI and this is how I save the user data.
pawn Код:
//OnPlayerDisconnect
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_Close(File);
Reply
#2

Quote:
Originally Posted by TonyII
Посмотреть сообщение
Hey, how can I open a user file and check if the player is admin or not. I want a command that could show us all of the offline admins.
You'd have to first have a list of all files, then read each file's admin level. mySQL is better for this sort of thing.
Reply
#3

Quote:
Originally Posted by MP2
Посмотреть сообщение
You'd have to first have a list of all files, then read each file's admin level. mySQL is better for this sort of thing.
Alright, if I would try this with YINI would it cause lag to the server?
Reply
#4

Yes, but it'd also be very difficult and complicated.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)