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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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