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 , 15:22   Re: [Help ASAP] Problem with a native that returns a string
Reply With Quote #1

I told you, you don't have any of the native params passed in the function header(public _furien_get_weaponname(szWeapon[], szString) should be _furien_get_weaponname(PluginIndex, PluginParams)).

So this is wrong:
PHP Code:
if(equali(szWeapong_szModels[i])) 
Use get_string to retrieve the passed string. Also set_string(1,...) should be set_string(2,...), because the second param is your buffer.

But, what do you want to do ? The loop does not make sense. You want to return only the weapon name associated with weapon_* ?
__________________

Last edited by HamletEagle; 10-23-2015 at 15:24.
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