Script errors
#1

Quote:

stock AddTextToFile(filename[], text[]) {
if(text[0] == EOS) return false;
new File: LSPD = fopen("factions/LSPD.ini", (fexist("factions/LSPD.ini") io_append : io_write));
if(!LSPD) return false;
fwrite(LSPD, text);
fclose(LSPD);

return true;
}

Quote:

error 001: expected token: ")", but found "-identifier-"
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found ")"

All errors are at this line
Quote:

new File: LSPD = fopen("factions/LSPD.ini", (fexist("factions/LSPD.ini") io_append : io_write));

Reply


Messages In This Thread
Script errors - by hhaaoo123 - 07.06.2015, 09:38
Re: Script errors - by JaydenJason - 07.06.2015, 09:41
Re: Script errors - by hhaaoo123 - 07.06.2015, 10:00
Re: Script errors - by iAnonymous - 07.06.2015, 11:02
Re: Script errors - by hhaaoo123 - 07.06.2015, 11:04
Re: Script errors - by Vince - 07.06.2015, 11:05
Re: Script errors - by hhaaoo123 - 07.06.2015, 11:33

Forum Jump:


Users browsing this thread: 3 Guest(s)