Raised This Month: $ Target: $400
 0% 

Solved natives usage (not sure about title)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 06-07-2021 , 15:14   Re: natives usage (not sure about title)
Reply With Quote #3

Quote:
Originally Posted by YankoNL View Post
When you register and Item there should be always a name and price because it needs that info as shown:
PHP Code:
native register_item(const name[], cost = -1
If you set only the name, plugin will get confused because you left 'cost' empty.
If you set only price, the plugin will get confused again because you left 'name' empty.
So why I must set price in native if i can't use it as a default value?

Last edited by kww; 06-07-2021 at 15:16.
kww is offline
 



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 02:33.


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