SA-MP Forums Archive
sampgdk - 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: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: sampgdk (/showthread.php?tid=517946)

Pages: 1 2


Re: sampgdk - RCON1 - 08.06.2014



I do not know why?
FIXED



Current..


full log http://pastebin.com/QUT4b3cx


Re: sampgdk - xeeZ - 08.06.2014

Maybe that's because you didn't initialize logprintf.


Re: sampgdk - RCON1 - 08.06.2014

I added
Код:
typedef void (*logprintf_t)(char* format, ...);


logprintf_t logprintf;
And still the same


Re: sampgdk - xeeZ - 08.06.2014

That's not initialization - initializing a variable means assigning something to it, and logprintf can be initialized like this:

Код:
logprintf = (logprintf_t)ppData[PLUGIN_DATA_LOGPRINTF];
(and you would have known that if you looked at any plugin's source code...)


Re: sampgdk - GWMPT - 08.06.2014

RCON1, can I give you an advice?
Learn C/++ first, then yes, try to do a plugin.

That's basically what we had done, and that's what you have to do, since the moment you say(had done) initializing is the same thing as declaring a variable...


Re: sampgdk - RCON1 - 08.06.2014

Quote:
Originally Posted by xeeZ
Посмотреть сообщение
That's not initialization - initializing a variable means assigning something to it, and logprintf can be initialized like this:

Код:
logprintf = (logprintf_t)ppData[PLUGIN_DATA_LOGPRINTF];
(and you would have known that if you looked at any plugin's source code...)
Quote:
Originally Posted by Kikito
Посмотреть сообщение
RCON1, can I give you an advice?
Learn C/++ first, then yes, try to do a plugin.

That's basically what we had done, and that's what you have to do, since the moment you say(had done) initializing is the same thing as declaring a variable...
Sory.. logprintf = (logprintf_t) ppData [PLUGIN_DATA_LOGPRINTF]; also I just had not copied


Re: sampgdk - RCON1 - 08.06.2014


You can know why such a thing?