Raised This Month: $ Target: $400
 0% 

[INC] DString - Dynamic Strings


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-08-2015 , 20:46   Re: [INC] DString - Dynamic Strings
Reply With Quote #1

Quote:
Originally Posted by WildCard65 View Post
I believe error is caused via using the methodmap DString
Does this happen when using the DString_Create function directly? It might be a bug with the interpretation of the public DString. Can you also try creating with: view_as < DString > new DataPack(); if DString_Create does not work?

If DString_Create works, a potential fix for the methodmap is:
Code:
public DString(const char[] str = "") { return DString_Create( str ); }
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 07-09-2015 , 06:52   Re: [INC] DString - Dynamic Strings
Reply With Quote #2

Quote:
Originally Posted by Emp` View Post
Does this happen when using the DString_Create function directly? It might be a bug with the interpretation of the public DString. Can you also try creating with: view_as < DString > new DataPack(); if DString_Create does not work?

If DString_Create works, a potential fix for the methodmap is:
Code:
public DString(const char[] str = "") { return DString_Create( str ); }
DString_Create works, what I believe the cause is where you put the methodmap. If you look at where DataPack has it's methodmap located, I suggest you try to make your version of the include match it.
__________________
WildCard65 is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 18:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode