Raised This Month: $ Target: $400
 0% 

Write to .txt file and put +1


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
jonatat
Senior Member
Join Date: Dec 2017
Old 04-19-2021 , 10:00   Write to .txt file and put +1
Reply With Quote #1

Hello folks. I try to make simple thing. I need to wirte to .txt file and put +1. Example: I got file called numbers.txt, in this file i got number 1. I need to add +1 to that file and get 2.

My script:

PHP Code:
public WriteID()
{
new 
fp fopen("addons/amxmodx/configs/numbers.txt""wt");
new 
text[32] = fp++;
fputs(fptext);
fclose(fp);

But getting error then compiling. Any ideas what im doing wrong? Thanks u for helping me guys!
jonatat is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:31.


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