loop though users folder - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: loop though users folder (
/showthread.php?tid=241601)
loop though users folder -
jamesbond007 - 18.03.2011
is there a way to loop though a folder and then change a value to every single one of the .ini files in OnGameModeExit() using dini?
like...
Re: loop though users folder -
Mike Garber - 18.03.2011
Only if the player is online, otherwise it's gonna be a bitch.
Re: loop though users folder -
jamesbond007 - 18.03.2011
but is it possible?
Re: loop though users folder -
Cameltoe - 18.03.2011
Quote:
Originally Posted by jamesbond007
but is it possible?
|
I would suggest you to read about mysql.
pawn Код:
new Query[128];
format(Query, sizeof(Query), "UPDATE users SET Foo = %d;", Bar);
mysql_query(Query);
Would change every users "Foo" variable too "Bar".
Easy piece.