AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help my pole code is wrong :/ (https://forums.alliedmods.net/showthread.php?t=121391)

Hviideren 03-15-2010 06:50

Help my pole code is wrong :/
 
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


drekes 03-16-2010 09:52

Re: Help my pole code is wrong :/
 
Do you got error logs?

Seta00 03-16-2010 10:01

Re: Help my pole code is wrong :/
 
case POLE: {
Your code doesn't even make sense, learn the Pawn syntax before trying to script.

Exolent[jNr] 03-16-2010 11:58

Re: Help my pole code is wrong :/
 
Quote:

Originally Posted by Seta00 (Post 1119125)
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.

Toastt 03-16-2010 12:11

Re: Help my pole code is wrong :/
 
that's what shadezz posted the other day. actually it is shadezz code, cuase his error is "Server Shutting Down" aswell

Exolent[jNr] 03-16-2010 12:14

Re: Help my pole code is wrong :/
 
http://forums.alliedmods.net/showthread.php?t=121379

Quote:

Originally Posted by Shadezz (Post 1117783)
[ORIGINALLY POSTED BY HVIIDEREN!]

me and hviideren are working together on this


JaGareN 03-16-2010 12:27

Re: Help my pole code is wrong :/
 
I have soleved the problem and fix the pole to Shadezz and i send the sma to him.. Ask Shadezz


All times are GMT -4. The time now is 08:36.

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