Jump to content
  • 0
Sanasol

Function overloading

Question

Compiling plugin wihtout errors/warnings

but when server start it can't load plugin (failed to load skipping)

 

/* run when server is ready (online) */HPExport void server_online (void) {	vending = GET_SYMBOL("vending");	vending->purchase = myplugin_purchasereq;	do_init_myplugin();}

 

Without overloading plugin load normally

 

try to put overloading into plugin_init, and again "failed to load skipping"

 

 

HPExport void plugin_init (void) {	StrBuf = GET_SYMBOL("StrBuf");	SQL = GET_SYMBOL("SQL");	map = GET_SYMBOL("map");	iMap = GET_SYMBOL("iMap");	mapit = GET_SYMBOL("mapit");	iTimer = GET_SYMBOL("iTimer");        vending = GET_SYMBOL("vending");	    vending->purchase = myplugin_purchasereq;}

 

Server under Ubuntu Server 13.04

Edited by Sanasol

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.