Raised This Month: $ Target: $400
 0% 

Help my pole code is wrong :/


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hviideren
Junior Member
Join Date: Mar 2009
Location: Denmark
Old 03-15-2010 , 06:50   Help my pole code is wrong :/
Reply With Quote #1

Everytime i try adding a pole block the server shuts down with the print "Server shutting down"
PHP Code:
   SetBlockModelName(block_modelg_block_models[i], "Pole");

        case 
POLE:    size "Pole";

            if( 
size == POLE)
            {
                
size_min[0] = -32.0;
                
size_min[1] = -4.0;
                
size_min[2] = -4.0;
                
                
size_max[0] = 32.0;
                
size_max[1] = 4.0;
                
size_max[2] = 4.0;
            }
            
            
size_min[0] = -4.0;
            
size_min[1] = -32.0;
            
size_min[2] = -32.0;
            
            
size_max[0] = 4.0;
            
size_max[1] = 32.0;
            
size_max[2] = 32.0;
            
            
angles[0] = 90.0;
        }
        case 
Y:
        {
            
size_min[0] = -32.0;
            
size_min[1] = -4.0;
            
size_min[2] = -32.0;
            
            
size_max[0] = 32.0;
            
size_max[1] = 4.0;
            
size_max[2] = 32.0;
            
            
angles[0] = 90.0;
            
angles[2] = 90.0;
            
            if( 
size == POLE)
            {
                
size_min[0] = -4.0;
                
size_min[1] = -32.0;
                
size_min[2] = -4.0;
                
                
size_max[0] = 4.0;
                
size_max[1] = 32.0;
                
size_max[2] = 4.0;
            }
        }
        case 
Z:
        {
            
size_min[0] = -32.0;
            
size_min[1] = -32.0;
            
size_min[2] = -4.0;
            
            
size_max[0] = 32.0;
            
size_max[1] = 32.0;
            
size_max[2] = 4.0;
            
            
angles[0] = 0.0;
            
angles[1] = 0.0;
            
angles[2] = 0.0;
            
            if( 
size == POLE)
            {
                
size_min[0] = -4.0;
                
size_min[1] = -4.0;
                
size_min[2] = -32.0;
                
                
size_max[0] = 4.0;
                
size_max[1] = 4.0;
                
size_max[2] = 32.0;
            }
        }
    }
    
        case 
POLE:
        {
            
SetBlockModelName(block_modelg_block_models[block_type], "Pole");
            
scale 1.0;

        else if ( 
max_size 32.0 )    size POLE;

        case 
LARGE:    g_selected_block_size[id] = POLE;
        case 
POLE:    g_selected_block_size[id] = TINY;

    else if ( 
max_size 32.0 )    size POLE
__________________
i give +karma if any 1 helps me .
+Karma if i help

Hviideren is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-16-2010 , 09:52   Re: Help my pole code is wrong :/
Reply With Quote #2

Do you got error logs?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 03-16-2010 , 10:01   Re: Help my pole code is wrong :/
Reply With Quote #3

case POLE: {
Your code doesn't even make sense, learn the Pawn syntax before trying to script.
Seta00 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-16-2010 , 11:58   Re: Help my pole code is wrong :/
Reply With Quote #4

Quote:
Originally Posted by Seta00 View Post
case POLE: {
Your code doesn't even make sense, learn the Pawn syntax before trying to script.
That's not his exact code.
He copy/pasted pieces of his code here that had to do with poles.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Toastt
BANNED
Join Date: Nov 2009
Old 03-16-2010 , 12:11   Re: Help my pole code is wrong :/
Reply With Quote #5

that's what shadezz posted the other day. actually it is shadezz code, cuase his error is "Server Shutting Down" aswell
Toastt is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-16-2010 , 12:14   Re: Help my pole code is wrong :/
Reply With Quote #6

http://forums.alliedmods.net/showthread.php?t=121379

Quote:
Originally Posted by Shadezz View Post
[ORIGINALLY POSTED BY HVIIDEREN!]

me and hviideren are working together on this
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
JaGareN
Senior Member
Join Date: Mar 2009
Old 03-16-2010 , 12:27   Re: Help my pole code is wrong :/
Reply With Quote #7

I have soleved the problem and fix the pole to Shadezz and i send the sma to him.. Ask Shadezz
JaGareN 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 08:36.


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