SA-MP Forums Archive
Question with dini - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question with dini (/showthread.php?tid=399624)



Question with dini - karolis1478 - 15.12.2012

Hi, my server register system is with dini include, i want just look how much in server is registered players, example:
Server is having 236 registered players!
someone can give here script?


Re: Question with dini - JaKe Elite - 15.12.2012

It's possible.
However, This is not recommended.
You've to create a variable (global one).
Then when player registers. do something like

pawn Код:
Registered += 1;
then save it with dini_SetInt.

then onplayerconnect

pawn Код:
new string[128];
format(string, sizeof(string), "Server is having %i registered players!", Registered);
SendClientMessage(playerid, -1, string);



Re: Question with dini - RajatPawar - 15.12.2012

@ romel, may I know (out of curiosity) why is it not recommended? I agree it would complicate or lag when using INI..any other reason? Thanks.