SA-MP S[D]K
#9

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.
Reply


Messages In This Thread
SA-MP S[D]K - by KingHual - 11.12.2014, 21:04
Re: SA-MP S[D]K - by iZN - 11.12.2014, 21:16
Re: SA-MP S[D]K - by Khanz - 11.12.2014, 21:56
Re: SA-MP S[D]K - by Kaperstone - 12.12.2014, 05:12
Re: SA-MP S[D]K - by KingHual - 12.12.2014, 08:20
Re: SA-MP S[D]K - by GM_KoDi - 12.12.2014, 09:29
Re: SA-MP S[D]K - by KingHual - 12.12.2014, 12:17
Re: SA-MP S[D]K - by Dystans - 12.12.2014, 19:31
Re: SA-MP S[D]K - by KingHual - 12.12.2014, 19:41
Re: SA-MP S[D]K - by Arastair - 12.12.2014, 19:48
Re: SA-MP S[D]K - by KingHual - 13.12.2014, 00:25
Re: SA-MP S[D]K - by Khanz - 13.12.2014, 00:35
Re: SA-MP S[D]K - by Pottus - 13.12.2014, 01:26
Re: SA-MP S[D]K - by KingHual - 13.12.2014, 16:06
Re: SA-MP S[D]K - by RaeF - 16.04.2015, 10:21
Re: SA-MP S[D]K - by RaeF - 09.05.2015, 00:36

Forum Jump:


Users browsing this thread: 5 Guest(s)