21.07.2009, 03:20
hey guys workin on a script here that had to be decompiled cause the creater left the clan and only left the amx file so instead of recreating an entire server trying to get this one running to an editable state. Started with a shitload of errors now down to a main 3 here is the code section
and the line that the errors are pointing to is
if (!fexist arg0);
the errors that i am getting is the following
error 076: syntax error in the expression, or invalid function call
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
any help would be great guys ... thx in advance
Код:
function290(arg0, arg1) { new File:var0 = 0, File:var1 = 0; if (!fexist arg0); { return 0; } var0 = fopen(arg0, 0); var1 = fopen(arg1, 1); new var2[255]; while(fread(var0, var2, 255)) { function4A8(var2); format(var2, 255, "%s\r\n", var2); fwrite(var1, var2); } fclose(var0); fclose(var1); return 1; }
if (!fexist arg0);
the errors that i am getting is the following
error 076: syntax error in the expression, or invalid function call
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
any help would be great guys ... thx in advance