SA-MP Forums Archive
There is a way to make loop for this ? - 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: There is a way to make loop for this ? (/showthread.php?tid=337094)



There is a way to make loop for this ? - tal_peretz - 24.04.2012

I use DOF2, I have folder with all the users in my server [player.ini], I need to make loop or something else that inside each file and check value... is it possible ?

Thanks


Re: There is a way to make loop for this ? - 2KY - 24.04.2012

Yes, but that would cause MASSIVE lag.


Re: There is a way to make loop for this ? - Face9000 - 24.04.2012

Why you need to make a loop to check a specific value when you can create a command that reads a selected player file?


Re: There is a way to make loop for this ? - tal_peretz - 24.04.2012

Quote:
Originally Posted by 2KY
Посмотреть сообщение
Yes, but that would cause MASSIVE lag.
tell me how please.

___

I need to remove clan to example and I need to remove value from file of the player that in the clan, and I don't have list with all the players in the clan so I need to check all the files in the folder and check if the player is in the clan and reset is values..

__

by the way .. there is a way to open and remove folder in pawno ?


Respuesta: There is a way to make loop for this ? - Marricio - 24.04.2012

You could do that when a player connects.


Re: Respuesta: There is a way to make loop for this ? - tal_peretz - 24.04.2012

Quote:
Originally Posted by Marricio
Посмотреть сообщение
You could do that when a player connects.
I know I did it .. but if the players of the clan clan want to change name clan or remove the clan and create him back ? I need to remove the file clan.. How can I make look for this ?


Re: There is a way to make loop for this ? - tal_peretz - 25.04.2012

....


Re: There is a way to make loop for this ? - Vince - 25.04.2012

That is exactly what a database is used for. File writing and disk access is terribly slow. We're talking about several seconds here!