Raised This Month: $ Target: $400
 0% 

[SOLVED] Problem with a native that returns a string


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-23-2015 , 10:38   Re: [Help ASAP] Problem with a native that returns a string
Reply With Quote #1

Don't return a string, this was said 1000th times already, I am not sure why people keep doing this. It just stupid.

You have some natives called get_string/set_string, search for them. Also the loop looks silly, instead of it check if g_szModels[0] is the name that you get from the native(get_string) and use set_string with g_szModels[1].

Keep in mind that you are working with natives registered with style 0, so they don't pass the parameters. They only pass the plugin index and the param num. You have to use specific natives to get the params value(get_param/get_string etc).
__________________

Last edited by HamletEagle; 10-23-2015 at 10:42.
HamletEagle 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 22:07.


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