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(fp, text);
fclose(fp);
}
But getting error then compiling. Any ideas what im doing wrong? Thanks u for helping me guys!