AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Simple Write and Read File (https://forums.alliedmods.net/showthread.php?t=197198)

Randomize 09-29-2012 23:50

Simple Write and Read File
 
Could someone show me an example of simple write and read file

Bos93 09-30-2012 00:00

Re: Simple Write and Read File
 
Look amx_settings_api.sma and for example zp50_grenade_fire.sma

From ZP 5.0.8

Easy and understandable.

fysiks 09-30-2012 01:39

Re: Simple Write and Read File
 
Look in any plugin that uses files but if you find one that uses the functions read_file() and write_file(), skip them, you should not be using those functions.

You should look at fopen(), fgets(), fputs(), fclose(), etc. These functions are similar to C++ functions.


All times are GMT -4. The time now is 08:22.

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