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
minato
Senior Member
Join Date: May 2010
Location: Rosario
Old 03-25-2014 , 00:15   Re: [HELP] Error: Number of arguments does not match definition
Reply With Quote #10

PHP Code:
case 5

    new 
iMoney cs_get_user_money(id); 
    new 
CsTeams:team cs_get_user_team(id);
    new 
iPrice 6850
    new 
model[32];
    
cs_get_user_model(idmodelcharsmax(model))
    
    if (!(
is_user_alive(id))) 
    { 
        
ColorMessage(id"^4%s ^3You've to be ^4alive^3, to buy this item!"); 
        return 
PLUGIN_HANDLED
    } 
    
    if (!(
iMoney >= iPrice)) 
    { 
        
ColorMessage(id"^4%s ^3You don't have enough ^4money!"); 
        return 
PLUGIN_HANDLED
    } 
    
    switch(
team){
            
        case 
CS_TEAM_CT:
        {
            if(
equal(model"leet")) 
            { 
                
ColorMessage(id"^3You already have ^4Chameleon^3!");     
                return 
PLUGIN_HANDLED
            } 
            else
                
cs_set_user_model(id,"leet"); 
                
        }
        case 
CS_TEAM_T:
        {
            if(
equal(model"sas")) 
            { 
                
ColorMessage(id"^3You already have ^4Chameleon^3!");     
                return 
PLUGIN_HANDLED
            } 
            else 
                
cs_set_user_model(id,"sas"); 
            
        }
    
    }
    
    
cs_set_user_money(idiMoney iPrice); 
    
ColorMessage(id"^3%s ^4Ti kupi ^3Chameleon"PREFIX); 

__________________

Last edited by minato; 03-25-2014 at 00:18.
minato is offline
Send a message via MSN to minato
 



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