Raised This Month: $ Target: $400
 0% 

What´s the problem with this "else"?


Post New Thread Reply   
 
Thread Tools Display Modes
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
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-18-2009 , 21:47   Re: What´s the problem with this "else"?
Reply With Quote #2

Try adding a closing bracket all the way at the bottom

}

If that doesnt do it, post your exact code.
__________________
Bugsy is offline
dogandcat
BANNED
Join Date: Jan 2009
Old 03-18-2009 , 22:42   Re: What´s the problem with this "else"?
Reply With Quote #3

okay i will try it tomorrow, and if this doesn´t work, will post the code...
dogandcat is offline
Reply



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