Raised This Month: $ Target: $400
 0% 

invaild function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
reinert
Veteran Member
Join Date: Feb 2007
Old 04-24-2011 , 10:23   Re: invaild function
Reply With Quote #3

Wow, you really fixed the code...

PHP Code:
public cmd_getak(id){  
    if(
get_user_team(id) == 2){  
        
ColorChat(idRED,"[Jailbreak]Only Guards Can Use Weapons Cmds")  
    }  
}  
    else if(
get_user_team(id) == 1) {  
        
give_item(0,weapon_ak47)  
    }  

->
PHP Code:
public cmd_getak(id){  
    if(
get_user_team(id) == 2){  
        
ColorChat(idRED,"[Jailbreak]Only Guards Can Use Weapons Cmds")
    }else if(
get_user_team(id) == 1){  
        
give_item(id"weapon_ak47")
    }

and is it the whole code of plugin? do you really need that many includes ? Also if it's for cstrike, you should use cs_get_user_team instead of get_user_team, it's more accurate and efficient.

Last edited by reinert; 04-24-2011 at 10:33.
reinert 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 20:01.


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