sampgdk
#21



I do not know why?
FIXED



Current..


full log http://pastebin.com/QUT4b3cx
Reply
#22

Maybe that's because you didn't initialize logprintf.
Reply
#23

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


logprintf_t logprintf;
And still the same
Reply
#24

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...)
Reply
#25

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

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
Reply
#27


You can know why such a thing?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)