Raised This Month: $ Target: $400
 0% 

Whats wrong here?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mammapappa
Member
Join Date: Nov 2008
Old 03-21-2011 , 06:39   Whats wrong here?
Reply With Quote #1

PHP Code:
case N1:
{
    
gSelectedModifyType[id] = convertBlockAiming(id);
    
gSelectedModifyMsg[id] = "Convert";


Last edited by mammapappa; 03-21-2011 at 07:57.
mammapappa is offline
nnajko
Senior Member
Join Date: May 2009
Location: Sweden
Old 03-21-2011 , 09:09   Re: Whats wrong here?
Reply With Quote #2

PHP Code:
new gSelectedModifyMsg[33][8]; 
nnajko is offline
mammapappa
Member
Join Date: Nov 2008
Old 03-21-2011 , 09:26   Re: Whats wrong here?
Reply With Quote #3

Quote:
Originally Posted by nnajko View Post
PHP Code:
new gSelectedModifyMsg[33][8]; 

inte det som var felet
jag ger lite mer kod och errors

Edit: Oops wrote in swedish
that was not the error
ill give some more code and errors

PHP Code:
public handleModifyMenu(idnum)
{    
    switch (
num)
    {
        case 
N1:
        {
            
gSelectedModifyType[id] = convertBlockAiming(id);
            
gSelectedModifyMsg[id] = "Convert";
        }
        case 
N2:
        {
            
gSelectedModifyType[id] = deleteBlockAiming(id);
            
gSelectedModifyMsg[id] = "Remove";
        }
        case 
N3:
        {
            
gSelectedModifyType[id] = rotateBlockAiming(id);
            
gSelectedModifyMsg[id] = "Rotate";
        }
        case 
N4:
        {
            
gSelectedModifyType[id] = showPropertiesMenu(id);
            
gSelectedModifyMsg[id] = "Set Properties";
        }
        case 
N5:
        {
            
gSelectedModifyType[id] = showRenderMenu(id);
            
gSelectedModifyMsg[id] = "Set rendering";
        case 
N0:
        {
            
showMainMenu(id);
        }
    }
    if (
num != N0)
        
showMainMenu(id);

Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Number of arguments does not match definition on line 3366
Error: Array sizes do not match, or destination array is too small on line 3382
Error: Array sizes do not match, or destination array is too small on line 3387
Warning: Loose indentation on line 3388
Error: Invalid statement; not in switch on line 3388
Error: Only a single statement (or expression) can follow each "case" on line 3393
Warning: Expression has no effect on line 3393
Error: Expected token: ";", but found "-identifier-" on line 3394
Warning: Loose indentation on line 3394
Warning: Symbol is never used: "N0" on line 3395
Warning: Symbol is never used: "showModifyMenu" on line 6004

6 Errors.
Could not locate output file C:\Documents and Settings\Linus\Mina dokument\Downloads\zackyscm(1).amx (compile failed).

Last edited by mammapappa; 03-21-2011 at 09:39.
mammapappa is offline
nnajko
Senior Member
Join Date: May 2009
Location: Sweden
Old 03-21-2011 , 10:19   Re: Whats wrong here?
Reply With Quote #4

PHP Code:
new gSelectedModifyMsg[33][20]; 
PHP Code:
public handleModifyMenu(idnum)
{    
    switch( 
num )
    {
        case 
N1:
        {
            
gSelectedModifyType[id] = convertBlockAiming(id);
            
gSelectedModifyMsg[id] = "Convert";
        }
        case 
N2:
        {
            
gSelectedModifyType[id] = deleteBlockAiming(id);
            
gSelectedModifyMsg[id] = "Remove";
        }
        case 
N3:
        {
            
gSelectedModifyType[id] = rotateBlockAiming(id);
            
gSelectedModifyMsg[id] = "Rotate";
        }
        case 
N4:
        {
            
gSelectedModifyType[id] = showPropertiesMenu(id);
            
gSelectedModifyMsg[id] = "Set Properties";
        }
        case 
N5:
        {
            
gSelectedModifyType[id] = showRenderMenu(id);
            
gSelectedModifyMsg[id] = "Set rendering";
        }
    }
    
    
showMainMenu(id);

nnajko 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 14:34.


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