SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 08/06/2014, 10:43 AM   #21
RCON1
Big Clucker
 
RCON1's Avatar
 
Join Date: May 2012
Posts: 57
Reputation: 6
Default Re: sampgdk



I do not know why?
FIXED



Current..


full log http://pastebin.com/QUT4b3cx
__________________


Kiedyś usłyszałem jedną bardzo mądrą rzecz ,że na świecie nie ma ludzi normalnych i nienormalnych ,
tylko są Ci pozamykani w zakładach i Ci którzy nie zostali przebadani .(hahahaha) ~Słoń

http://www.youtube.com/watch?v=sE1udtGN1oo
RCON1 is offline   Reply With Quote
Old 08/06/2014, 11:04 AM   #22
xeeZ
Huge Clucker
 
Join Date: Feb 2013
Posts: 320
Reputation: 382
Default Re: sampgdk

Maybe that's because you didn't initialize logprintf.
xeeZ is offline   Reply With Quote
Old 08/06/2014, 11:35 AM   #23
RCON1
Big Clucker
 
RCON1's Avatar
 
Join Date: May 2012
Posts: 57
Reputation: 6
Default Re: sampgdk

I added
Code:
typedef void (*logprintf_t)(char* format, ...);


logprintf_t logprintf;
And still the same
__________________


Kiedyś usłyszałem jedną bardzo mądrą rzecz ,że na świecie nie ma ludzi normalnych i nienormalnych ,
tylko są Ci pozamykani w zakładach i Ci którzy nie zostali przebadani .(hahahaha) ~Słoń

http://www.youtube.com/watch?v=sE1udtGN1oo
RCON1 is offline   Reply With Quote
Old 08/06/2014, 12:14 PM   #24
xeeZ
Huge Clucker
 
Join Date: Feb 2013
Posts: 320
Reputation: 382
Default Re: sampgdk

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

Code:
logprintf = (logprintf_t)ppData[PLUGIN_DATA_LOGPRINTF];
(and you would have known that if you looked at any plugin's source code...)
xeeZ is offline   Reply With Quote
Old 08/06/2014, 12:24 PM   #25
GWMPT
Gangsta
 
Join Date: Nov 2012
Location: Portugal.
Posts: 989
Reputation: 287
Default Re: sampgdk

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...
GWMPT is offline   Reply With Quote
Old 08/06/2014, 12:30 PM   #26
RCON1
Big Clucker
 
RCON1's Avatar
 
Join Date: May 2012
Posts: 57
Reputation: 6
Default Re: sampgdk

Quote:
Originally Posted by xeeZ View Post
That's not initialization - initializing a variable means assigning something to it, and logprintf can be initialized like this:

Code:
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 View Post
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
__________________


Kiedyś usłyszałem jedną bardzo mądrą rzecz ,że na świecie nie ma ludzi normalnych i nienormalnych ,
tylko są Ci pozamykani w zakładach i Ci którzy nie zostali przebadani .(hahahaha) ~Słoń

http://www.youtube.com/watch?v=sE1udtGN1oo
RCON1 is offline   Reply With Quote
Old 08/06/2014, 01:03 PM   #27
RCON1
Big Clucker
 
RCON1's Avatar
 
Join Date: May 2012
Posts: 57
Reputation: 6
Default Re: sampgdk


You can know why such a thing?
__________________


Kiedyś usłyszałem jedną bardzo mądrą rzecz ,że na świecie nie ma ludzi normalnych i nienormalnych ,
tylko są Ci pozamykani w zakładach i Ci którzy nie zostali przebadani .(hahahaha) ~Słoń

http://www.youtube.com/watch?v=sE1udtGN1oo
RCON1 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sampgdk gamemode/or a tutorial No Fear Scripting Help 2 12/12/2014 02:54 AM
SAMPGDK Framework GWMPT Everything and Nothing 23 04/06/2014 09:30 PM
sampgdk on Linux DartakousLien Scripting Help 0 21/08/2013 12:48 AM
Setting up SAMPGDK in C++ Drebin Scripting Help 5 18/08/2012 12:15 AM


All times are GMT. The time now is 04:03 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.