SA-MP Forums Archive
[FIXED]Can't compile my script. - 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: [FIXED]Can't compile my script. (/showthread.php?tid=95036)



[FIXED]Can't compile my script. - Djiango - 02.09.2009

So I installed the 0.3 server package, with the new includes and stuff.
Commented out "public OnPlayerPrivmsg(playerid, recieverid, text[])"
Removed "SetDisabledWeapons(43,44,45);" & "EnableTirePopping(1);"
Commented out all "SetVehicleParamsForPlayer(GetPlayerVehicleID(play erid),i, 0, 1);"
But it seems no matter what I do, the compiler will crash when trying to compile the script.
Am I missing something?

The script would compile perfectly just before adding the new stuff.


Re: Can't compile my script. - kc - 02.09.2009

Quote:

Commented out "public OnPlayerPrivmsg(playerid, recieverid, text[])"

You will need to comment out the rest of that callback, as well...


Re: Can't compile my script. - Djiango - 02.09.2009

Yeah I did do that.
Just tried compiling some of the new gamemodes, also without any problems.
So it must be something in my script, or?



Re: Can't compile my script. - Matite - 02.09.2009

Ensure you are running the PAWN executable from the new 0.3 server package (I know it seems basic but some people used the old one).

Also, make sure any INC files you use are in the "\pawno\include" dir (if you use extra ones like DINI they need to go in there).

If you still have problems then maybe I could try and compile it for you to see if I get the same error.




Re: Can't compile my script. - Djiango - 02.09.2009

I can get to this error.
dini.inc(24) : fatal error 100: cannot read from file: "dutils"
But whenever i add "dutils.inc" to the include folder, it crashes when compiling.

I tried creating a whole new folder, and placing the files there. But no cigar.

Matite - I'll send my GM by PM, if that's ok.

EDIT: Fixed. I was using a include that wasn't ready for 0.3.
Thanks Matite.




Re: [FIXED]Can't compile my script. - Matite - 02.09.2009

For reference, this problem was being caused by the seif_vehicles INC file which needs an update for 0.3

Please lock.