Raised This Month: $ Target: $400
 0% 

return variable


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-01-2021 , 23:57   Re: return variable
Reply With Quote #1

You are registering a style 1 native but wrote code for a style 0 native. Style 1 natives are deprecated and should not be used. See the tutorial about dynamic natives here.

Ultimately, it looks like you may only need to remove the style 1 setting in register_native().



Offtopic: "set" and "get" have opposite meanings: register_native("SetThunder", "get_thunderbolt", true);
__________________
fysiks is offline
Culverton smith
Junior Member
Join Date: Apr 2021
Old 05-02-2021 , 03:56   Re: return variable
Reply With Quote #2

Quote:
Originally Posted by fysiks View Post
You are registering a style 1 native but wrote code for a style 0 native. Style 1 natives are deprecated and should not be used. See the tutorial about dynamic natives here.

Ultimately, it looks like you may only need to remove the style 1 setting in register_native().



Offtopic: "set" and "get" have opposite meanings: register_native("SetThunder", "get_thunderbolt", true);
Thanks but it didn't work.I found another solution and the problem was solved
Culverton smith is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-02-2021 , 17:40   Re: return variable
Reply With Quote #3

Quote:
Originally Posted by Culverton smith View Post
Thanks but it didn't work.I found another solution and the problem was solved
What did you end up doing to fix it? You should explain what you did so that if other people have similar issues, then this thread will actually be helpful to the community.
__________________
fysiks 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 20:00.


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