Raised This Month: $ Target: $400
 0% 

Whatīs the problem with this "else"?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dogandcat
BANNED
Join Date: Jan 2009
Old 03-18-2009 , 21:06   Whatīs the problem with this "else"?
Reply With Quote #1

Code:
        if(pev(id, pev_maxspeed) != 1.0)
        {
           new ....
           .... = it is not the problem....
            
            if (....)
            {
                static Float:originF[3]            
                pev(id, pev_origin, originF)
                // Colored Aura
                engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
                write_byte(TE_DLIGHT) // TE id
                engfunc(EngFunc_WriteCoord, originF[0]) // x
                engfunc(EngFunc_WriteCoord, originF[1]) // y
                engfunc(EngFunc_WriteCoord, originF[2]) // z
                write_byte(13) // radius asdasdasd
                write_byte(255) // r
                write_byte(0) // g
                write_byte(0)  // b 
                write_byte(2) // life
                write_byte(0) // decay rate
                message_end() 
                
                // Particle Burst
                engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
                write_byte(TE_PARTICLEBURST) // TE id
                engfunc(EngFunc_WriteCoord, originF[0]) // x
                engfunc(EngFunc_WriteCoord, originF[1]) // y
                engfunc(EngFunc_WriteCoord, originF[2]) // z
                write_short(20) // radius
                write_byte(60) // color
                write_byte(3) // duration (will be randomized a bit)
                message_end()
            }    
            else if (....)
            {    
                static Float:originF[3]            
                pev(id, pev_origin, originF)
                // Colored Aura
                engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
                write_byte(TE_DLIGHT) // TE id
                engfunc(EngFunc_WriteCoord, originF[0]) // x
                engfunc(EngFunc_WriteCoord, originF[1]) // y
                engfunc(EngFunc_WriteCoord, originF[2]) // z
                write_byte(13) // radius asdasdasd
                write_byte(255) // r
                write_byte(112) // g
                write_byte(40)  // b 
                write_byte(2) // life
                write_byte(0) // decay rate
                message_end() 
            }    
            else if (....)
            {    
                static Float:originF[3]            
                pev(id, pev_origin, originF)
                // Colored Aura
                engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
                write_byte(TE_DLIGHT) // TE id
                engfunc(EngFunc_WriteCoord, originF[0]) // x
                engfunc(EngFunc_WriteCoord, originF[1]) // y
                engfunc(EngFunc_WriteCoord, originF[2]) // z
                write_byte(13) // radius asdasdasd
                write_byte(255) // r
                write_byte(255) // g
                write_byte(0)  // b 
                write_byte(2) // life
                write_byte(0) // decay rate
                message_end() 
            }    
            else if (....)
            {    
                static Float:originF[3]            
                pev(id, pev_origin, originF)
                // Colored Aura
                engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
                write_byte(TE_DLIGHT) // TE id
                engfunc(EngFunc_WriteCoord, originF[0]) // x
                engfunc(EngFunc_WriteCoord, originF[1]) // y
                engfunc(EngFunc_WriteCoord, originF[2]) // z
                write_byte(13) // radius asdasdasd
                write_byte(0) // r
                write_byte(255) // g
                write_byte(0)  // b 
                write_byte(2) // life
                write_byte(0) // decay rate
                message_end() 
            }
            else
        {    
            static Float:originF[3]            
            pev(id, pev_origin, originF)
            // Colored Aura
            engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
            write_byte(TE_DLIGHT) // TE id
            engfunc(EngFunc_WriteCoord, originF[0]) // x
            engfunc(EngFunc_WriteCoord, originF[1]) // y
            engfunc(EngFunc_WriteCoord, originF[2]) // z
            write_byte(13) // radius asdasdasd
            write_byte(0) // r
            write_byte(255) // g
            write_byte(0)  // b 
            write_byte(2) // life
            write_byte(0) // decay rate
            message_end() 
        }
the last else TE_DLIGHT isnīt working...i just was asking why...+k if you help me

Last edited by dogandcat; 03-18-2009 at 21:08.
dogandcat 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 09:01.


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