SA-MP Forums Archive
Need your help in Eror #endif - 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: Need your help in Eror #endif (/showthread.php?tid=261299)



Need your help in Eror #endif - Yahav - 12.06.2011

Hello.
I have a mod and it gives me such eror


Quote:

D: \ Games \ Modes for SAMP \ RP \ sss \ ss.pwn (47840): error 001: expected token: "# endif", but found "-end of file-"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

That Eror.
I name the best # endif down mode and compile me but it's not showing me Data Compilation
And amx is 91 bytes

If I have to put the endif at the bottom in public OnFilterScriptExit () do not have it if you need to put there tell me I will bring you the lines tell me where


Re: Need your help in Eror #endif - Cyanide - 12.06.2011

Remove
pawn Код:
#if defined FILTERSCRIPT
, the #else line and the #endif line from your script. It should fix it.

Edit: A script that is similar to this is the new.pwn in your pawno folder.

pawn Код:
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

#endif



Re: Need your help in Eror #endif - Yahav - 13.06.2011

is not work