AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Compiler bugs / crashes / assertions? (https://forums.alliedmods.net/showthread.php?t=17988)

BAILOPAN 09-13-2005 03:50

Compiler bugs / crashes / assertions?
 
As you may have noticed, ITB CompuPhase's Pawn Compiler is quite buggy.

Lately I've become somewhat adept at fixing its numerous parse errors. However, I don't have time to fix everything.

If you find a bug in the compiler, post it here with code that will definitively crash the latest version. If I can't fix it, I'll just forward it to ITB CompuPhase. So far I'm 7 for 7 for bugs people have found on IRC or through the forums, so there's a good chance it'll get fixed.

The compiler really isn't production ready and I want it to become usable for other projects of mine.

Thanks!

XxAvalanchexX 09-13-2005 17:25

I fixed this for someone last night, missing commas in multi-dimensional string-like array definitions crash.

Code:
 new my_array[6][] = {  "str1",  "str2",  "str3",  "str4",  "str5"  "str6" }  public entry_point() { }

Note that creating a one-dimension integer array and leaving out a comma gives a "invalid function or declaration" error instead of crashing.

BAILOPAN 09-13-2005 20:39

Code:

test.sma(9) : error 010: invalid function or declaration
Looks like it already catches this, at least in my version :)

XxAvalanchexX 09-13-2005 22:29

Well I'm still using the compiler that came with 1.00, which it crashes on. I figured at least the web compiler would be up to date, but it also crashes there.

BioHazardousWaste 09-21-2005 22:09

Here's a bug. It doesn't know what frikkin line the tag mismatch is on.

http://forums.alliedmods.net/showthread.php?t=18289

BAILOPAN 09-22-2005 04:12

You must post a script, in its entirety (but preferably as small as possible) which reproduces the error.

BioHazardousWaste 09-25-2005 14:21

Sorry I can't provide much info. Everything I compile returns Internal Error; including AMXModX native files.

EDIT: An exact file? Ok sure.. how about csstats.sma? cmdmenu.sma? adminchat.sma? It seems it doesn't matter what file I use.


All times are GMT -4. The time now is 14:24.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.