Strange 'Pawn Compiler library has stopped working'
#1

Hi all,
I am trying to compile my huge script.
I have a good amounts of includes:
Код:
#define SAARP_GAMEMODE

#include <a_samp>

#include <foreach>
#include <strlib>
#include <float>
#include <izcmd>
//#include <RAK>
//#include <RAKTOOLS>

//ACs
#include <ELC_AC_BASE>

#include <a_http>
#include <a_mysql>
#include <streamer>

#include <SKY>
#include <weapon-config>//needs to be here (after SKY, before YSF, or bug)
#include <YSF>

#include <physics>
#include <OPA>

// Must be after the script includes, before my includes
//#pragma dynamic 2000000
//#pragma dynamic 262144
#pragma dynamic 16384

//saarp vars
#include "..\include\saarp_vars.pwn"
#include "..\include\saarp_gmod_vars.pwn"

//basic functions includes
#include <../../include/crashdetect>
#include <../../include/saarp_fadeScript>
#include <../../include/saarp_sscanfScript>


//define dcmd manners
//#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

//Physics and other functions

// other specific function includes

//classes

#include "../include/saarp_class_gangwar.pwn"

#include "../include/saarp_class_missions.pwn"

#include "../include/saarp_class_interactiveMenu.pwn"

#include "../include/saarp_class_helpers.pwn"

#include "../include/saarp_class_shops.pwn"

#include "../include/saarp_class_telecomunication.pwn"

#include "../include/saarp_class_tutorial.pwn"

#include "../include/saarp_class_transport.pwn"

#include <../../include/saarp_computers_tcmd>

//saarp added includes
#include <../../include/saarp_inc_addedObjects>
#include <../../include/saarp_inc_removedBuildings>
//others
//#include "../include/upeppe_script_poolphysics.inc"
//#include "../include/grimr_script_gcasinos.inc" //recursion error?

//Administration class must be at the end of all includes (for a_status to work)
#include "../include/saarp_class_administration.pwn"

// things with no vars definitions
//general functions
#include "../include/saarp_functions.pwn"
#include "../include/saarp_gmod_functions.pwn"
#include "../include/saarp_gmod_tcmd.pwn"
#include <../../include/saarp_factions_tcmd>
#include <../../include/saarp_diagRes>

// REST OF THE GAMEMODE
When I try to compile all this, I get:


So when I start investigating, I found that if I comment all my classes, from "gangwar" to "computer", the problem stops.
But when I tried to find out which one exactly, it seems that with anyone of those commented, it doesn't stops working, with all of them commented too. but only with ALL uncommented it stops working.

I use y_hook in most of these scripts, other than that I don't know.
Like I said, the compiler stops working unless I comment any scripts from "gangwar" to "computer", the script should be able to compile with or without those scripts.

Also, if there is any syntax error, even with all scripts included, the compiler doesn't stops working.

Thank you,
rt-2
Reply
#2

On another computer it compiles and runs good. I don't know what to think about that. RAM seemed good. IDK
Reply
#3

It always occurs due to a missing bracket.
EDIT: Can i have a screenshot of your pawno folder and includes folder?
Reply
#4

^
The above post can not fix anything.

I think its a problem in your compiler or your OS.

EDIT: I will recommend un-commenting your gamemode includes (saarp_class one's) one by one
Reply
#5

Get the compiler patch (bing it!) and try to compile again.
Reply
#6

Why this ??

#include <../../include/blabla>

just use

#include <../include/blabla>
Reply
#7

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
It always occurs due to a missing bracket.
EDIT: Can i have a screenshot of your pawno folder and includes folder?
I don't think so, on another computer it just compile with no problems

Quote:
Originally Posted by ALiScripter
Посмотреть сообщение
^
The above post can not fix anything.

I think its a problem in your compiler or your OS.

EDIT: I will recommend un-commenting your gamemode includes (saarp_class one's) one by one
I tried, and it always work if atleast one is commented, ANY of them. Or on another computer...

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
Get the compiler patch (bing it!) and try to compile again.
Are you talking about this? https://github.com/Zeex/pawn

Quote:
Originally Posted by Yaa
Посмотреть сообщение
Why this ??

#include <../../include/blabla>

just use

#include <../include/blabla>
If I do this, some of the script will just not be included, I don't know why.
It would give me errors like "Function XX not defined" instantly.
And by the way its not "#include <../../include/blabla>" Its #include "../../include/blabla.pwn".

Thank you all for your help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)