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
Author Message
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 03-24-2014 , 14:59   [HELP] Error: Number of arguments does not match definition
Reply With Quote #1

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:
if(cs_get_user_model(id) == "sas.mdl"
and
PHP Code:
if(cs_get_user_model(id) == "leet.mdl"
This is the code. The main idea is a part of a menu, which sets the user a model of a player from he other team. Or "chameleon" option. Thanks in advance!

PHP Code:
                {
                    if(
cs_get_user_model(id) == "leet.mdl")
                        {
                            
ColorMessage(id"^3Tova veche go ^4imash^3!");    
                            return 
PLUGIN_HANDLED;
                        }
                    else
                        {
                            
cs_set_user_model(id,"leet.mdl");
                        }
                }
            else
                {
                    if(
cs_get_user_model(id) == "sas.mdl")
                        {
                            
ColorMessage(id"^3Tova veche go ^4imash^3!");    
                            return 
PLUGIN_HANDLED;
                        }
                    else
                        {
                            
cs_set_user_model(id,"sas.mdl");
                        }
                } 
Flick3rR is offline
Send a message via Skype™ to Flick3rR
 



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