[HELP] Error: Number of arguments does not match definition
Hi, guys! I have some error and I don't know how exactly to fix it. I've searched, but I didn't find solution. The error appears on the line with:
PHP Code:
PHP Code:
PHP Code:
|
Re: [HELP] Error: Number of arguments does not match definition
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.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. |
Re: [HELP] Error: Number of arguments does not match definition
You also set and retrieve model names without the extension
|
Re: [HELP] Error: Number of arguments does not match definition
Thanks, guys! I actually fixed the problem by replacing
PHP Code:
PHP Code:
Allright, the problem is fixed! ---EDIT---- Allright... I've fixed the errors, but the whole func is not working.... Strange. It's about a menu item (Chameleon), what has to set the user model of player from the other team (in this case - leet and sas). So, i'll post the whole case and if you know why it's not working, it'll be great if you share the problem :) PHP Code:
|
Re: [HELP] Error: Number of arguments does not match definition
Your fix does nothing and is incorrect
|
Re: [HELP] Error: Number of arguments does not match definition
Quote:
|
Re: [HELP] Error: Number of arguments does not match definition
To use strings:
PHP Code:
|
Re: [HELP] Error: Number of arguments does not match definition
Look, I don't really understand what I'm i supposed to do, mostly beacause I cant simply translate your termins to my language :D Mainly I understand, but I can't get the details. So, I want to tell you, that in this case (with giving AWP):
PHP Code:
|
Re: [HELP] Error: Number of arguments does not match definition
Please post the whole .sma file as an attachment (don't copy and paste the code into the post) so that it will be much easier to help you.
|
Re: [HELP] Error: Number of arguments does not match definition
PHP Code:
|
| All times are GMT -4. The time now is 06:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.