Raised This Month: $35 Target: $400
 8% 

[ Help ] Error: Number of arguments does not match definition


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Location: ISR
Old 06-21-2018 , 08:00   [ Help ] Error: Number of arguments does not match definition
Reply With Quote #1

okay I never got that kind of mistake.
Code:
native get_user_bank( client );
native set_user_bank( client );
Code:
static Amount;
	set_user_bank( client, get_user_bank( client ) + Amount );
	
	set_user_cash( client, get_user_cash( client ) - Amount );
How arguments does not match?
__________________

Last edited by Fuck For Fun; 06-21-2018 at 08:01.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-21-2018 , 08:27   Re: [ Help ] Error: Number of arguments does not match definition
Reply With Quote #2

Declaration of a native has 1 argument, you are trying to pass 2 Simple as that

Declare the native as get/set_user_bank( client, amount );
__________________
stuff
maqi is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Location: ISR
Old 06-21-2018 , 08:31   Re: [ Help ] Error: Number of arguments does not match definition
Reply With Quote #3

Quote:
Originally Posted by maqi View Post
Declaration of a native has 1 argument, you are trying to pass 2 Simple as that

Declare the native as get/set_user_bank( client, amount );
oh you right
thanks bro
Code:
native set_user_cash( client, Amount );
__________________
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-21-2018 , 08:40   Re: [ Help ] Error: Number of arguments does not match definition
Reply With Quote #4

Anytime, don't forget to do the same in the native definition
__________________
stuff
maqi is offline
Reply


Thread Tools
Display Modes

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 23:14.


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