Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-24-2014 , 15:08   Re: [HELP] Error: Number of arguments does not match definition
Reply With Quote #2

When you get this error, your first action should be to look up the function in the include files to see what arguments you need:

Code:
/* Get user model.
 */
native cs_get_user_model(index, model[], len);
In this case, it needs three arguments. The model string will be populated with the model and 'len' is the maximum length of the string variable that you use for 'model'.

The other thing is that in Pawn, you can't (or shouldn't; I can't remember which) compare strings by using equal signs. Use the equal() or equali() function.
__________________
fysiks 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 06:00.


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