errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: errors (
/showthread.php?tid=87571)
errors -
[sSs]BiGPiMP - 21.07.2009
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
Код:
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;
}
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
Re: errors -
Correlli - 21.07.2009
should be:
That's what happen if you use DeAMX.
Re: errors -
[sSs]BiGPiMP - 21.07.2009
yea thats what i used and i changed to what you suggested and i still have the same issue with the same error's ... any other sugestions??
Re: errors -
Correlli - 21.07.2009
Quote:
Originally Posted by [sSs
BiGPiMP ]
any other sugestions??
|
Yes. Don't use DeAMX.
Re: errors -
[sSs]BiGPiMP - 21.07.2009
yea kinda figured ... any other suggestions on how to get the .pwn outta the .amx ... idk if there is any but just a thought that there may be something else
Re: errors -
[ERP]Snow - 21.07.2009
Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by [sSs
BiGPiMP ]
any other sugestions??
|
Yes. Don't use DeAMX.
|
nuff said
Re: errors -
[sSs]BiGPiMP - 21.07.2009
ye got the point man ... what i am asking now is there anything else that will extract the .amx
Re: errors -
Correlli - 22.07.2009
Quote:
Originally Posted by [sSs
BiGPiMP ]
ye got the point man ... what i am asking now is there anything else that will extract the .amx
|
I don't think so and if it is, it's worse than DeAMX probably.
Re: errors -
[sSs]BiGPiMP - 22.07.2009
alright cool thx for the help man ...