AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [help] fopen (https://forums.alliedmods.net/showthread.php?t=136113)

katna 08-23-2010 03:04

[help] fopen
 
i have a txt file which is simillar to this:
PHP Code:

"katna" "3"
"other names" "3"
"other names" "4"
"other names" "5" 

my question is how can i read and both write to a file at the same time because i want to change the second number + 1. for example if the number is 3 i want to change it to 4

fysiks 08-23-2010 13:02

Re: [help] fopen
 
Using nVault might work better depending on what you are doing.

tm. 08-23-2010 13:23

Re: [help] fopen
 
Your you could use tries to temporary store data, and saving it in the text file at plugin_end. Again, depending on what you are doing.

Bugsy 08-23-2010 13:41

Re: [help] fopen
 
Need to store data between map changes or restarts, use nvault
Only need to store data for current map or round, use tries


All times are GMT -4. The time now is 21:51.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.