Raised This Month: $ Target: $400
 0% 

return ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-21-2009 , 05:53   return ?
Reply With Quote #1

wtf?

PHP Code:
public preThink(id)
{
    if(
g_RadioTimer[id] == 1
                return 
PLUGIN_HANDLED
    
new  clipammo
    
new button pev(id,pev_button)
    static  
iwpn
    iwpn 
get_user_weapon(idclipammo)
    
remove_weapon_icon(id)
    
    
check_icon_loc()
    
    static 
sprite[16]//, iwpn, clip, ammo

    
iwpn get_user_weapon(idclipammo)
    
    switch(
iwpn
    {
        case 
CSW_P228
        
sprite "d_p228"
        
case CSW_SCOUT
        
sprite "d_scout"
        
case CSW_HEGRENADE
        
sprite "d_grenade"
        
case CSW_XM1014:
        
sprite "d_xm1014"
        
case CSW_MAC10
        
sprite "d_mac10"
        
case CSW_AUG
        
sprite "d_aug"
        
case CSW_SMOKEGRENADE
        
sprite "d_flashbang"
        
case CSW_ELITE
        
sprite "d_elite"
        
case CSW_FIVESEVEN
        
sprite "d_fiveseven"
        
case CSW_UMP45
        
sprite "d_ump45"
        
case CSW_SG550
        
sprite "d_sg550"
        
case CSW_GALIL
        
sprite "d_galil"
        
case CSW_FAMAS
        
sprite "d_famas"
        
case CSW_USP
        
sprite "d_usp"
        
case CSW_MP5NAVY
        
sprite "d_mp5navy"
        
case CSW_M249
        
sprite "d_m249"
        
case CSW_M3
        
sprite "d_m3"
        
case CSW_M4A1
        
sprite "d_m4a1"
        
case CSW_TMP
        
sprite "d_tmp"
        
case CSW_G3SG1
        
sprite "d_g3sg1"
        
case CSW_FLASHBANG:
        
sprite "d_flashbang"
        
case CSW_DEAGLE
        
sprite "d_deagle"
        
case CSW_SG552
        
sprite "d_sg552"
        
case CSW_AK47
        
sprite "d_ak47"
        
case CSW_KNIFE
        
sprite "d_knife"
        
case CSW_P90
        
sprite "d_p90"
        
case CSW_GLOCK18
        
sprite "d_glock18"
        
case CSW_AWP
        
sprite "d_awp"
        
default: 
        return
    }    
    
user_icons[id] = sprite
    
    draw_icon
(id)
    
    if(!(
iwpn == CSW_C4)&&!(iwpn == CSW_KNIFE)&&!(iwpn == CSW_FLASHBANG)&&!(iwpn == CSW_HEGRENADE)&&!(iwpn == CSW_SMOKEGRENADE)&& button IN_RELOAD && get_user_ammo(idweapon_list[23], clipammo) && ammo <= && clip <= 5)
    {        
        new 
players[32],totalteam_name[10
        
get_user_team(id,team_name9
        
get_players(playerstotal ,"ce"team_name)
        new 
name[32]
        
get_user_name(id,name,31)
        for(new 
a=0total; ++a
        { 
            
client_print(players[a],print_chat,"%s (RADIO): Reloading.",name)
        
            switch(
random_num(0,2))
            {
                case 
0:
                {
                    
emit_sound(idCHAN_ITEM"Reloading01.wav"1.0ATTN_NORM0PITCH_NORM);
                }
                case 
1:
                {
                    
emit_sound(idCHAN_ITEM"Reloading02.wav"1.0ATTN_NORM0PITCH_NORM);
                }
                case 
2:
                {
                    
emit_sound(idCHAN_ITEM"Reloading03.wav"1.0ATTN_NORM0PITCH_NORM);
                }
                case 
3:
                {
                    
emit_sound(idCHAN_ITEM"Reloading04.wav"1.0ATTN_NORM0PITCH_NORM);
                }
            }
            
the_flash 2
            g_RadioTimer
[id] = 1
            set_task
(2.0,"radiotimer",id)
        }
    }

PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c1997-2006 ITB CompuPhaseAMX Mod X Team

Warning
: Function "preThink" should return a value on line 264
Error
: Function uses both "return" and "return <value>" on line 304

1 Error
.
Could not locate output file 
where do i have to set my return ? oO i tried overall, but only error oO
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
 



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 15:15.


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