SA-MP Forums Archive
[Help] Make reading my server administrators - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: [Help] Make reading my server administrators (/showthread.php?tid=530729)



[Help] Make reading my server administrators - Shura - 08.08.2014

Hello, wanted to know how I can perform a reading of all managers having my server actually do ZCMD a command, but to work with users who are offline, use Y_INI.

When I use the call, something ago to have an example:

Код:
	format( PlayerFile , sizeof PlayerFile, "accounts/%s.ini", accountName);
    new INI:File = INI_Open(PlayerFile);
    INI_SetTag(File,"data");



Re: [Help] Make reading my server administrators - SKAzini - 08.08.2014

Loop through all users, check their admin level and do whatever you want after that. I'm not sure how to loop through all users in Y_INI, but in MySQL it's extremely simple.


Respuesta: Re: [Help] Make reading my server administrators - Shura - 08.08.2014

Quote:
Originally Posted by SKAzini
Посмотреть сообщение
Loop through all users, check their admin level and do whatever you want after that. I'm not sure how to loop through all users in Y_INI, but in MySQL it's extremely simple.
------------------------------------------------------------------------------------------------------------------

Thank you, but my server has INI that I have bad luck, thanks for the intention.


Re: [Help] Make reading my server administrators - Stanford - 08.08.2014

I believe that you can't even do it in ini.. Sorry you might need to convert your accounts system to mysql.


Respuesta: Re: [Help] Make reading my server administrators - Shura - 08.08.2014

Quote:
Originally Posted by Stanford
Посмотреть сообщение
I believe that you can't even do it in ini.. Sorry you might need to convert your accounts system to mysql.
------------------------------------------------------------------------------------------------------------------

It would be very difficult to move my accounts to mysql? remember that I have saved in INI and DINI. Is it only would the bills?