Posts: 2,286
Threads: 18
Joined: Jun 2010
Quote:
Originally Posted by Dystans
While trying to compile, I get the following error:
Код:
Error: cannot pass dynamic arrays to extern© vararg functions
It shows up in this code:
pawn Код:
catch(AmxException e) { LogPrintf("Could not register natives with AMX: %s", e.getErrorString()); return e.getError(); }
Exactly:
Код:
LogPrintf("Could not register natives with AMX: %s", e.getErrorString());
How to fix it? I use Visual Studio 2013 Community Edition, I have VisualD and the compiler installed, and the only thing that worries me is this one error above.
|
Try changing "e.getErrorString()" to "e.getErrorString().ptr". I'll be adding a LogPrintf function that supports D arrays, but for now you have to pass a pointer. It's odd my compiler didn't notice that as yours did, though.