AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   errrors trying to add BoxMenu to SCM (https://forums.alliedmods.net/showthread.php?t=147521)

Shadezz 01-10-2011 10:51

errrors trying to add BoxMenu to SCM
 
ive been messing arround trying to add a "boxmenu" to my SCM but i cant seem to get it working :S i keep getting the same errors


PHP Code:

/home/groups/amxmodx/tmp3/phpRBuDIE.sma(1028) : warning 217loose indentation
/home/groups/amxmodx/tmp3/phpRBuDIE.sma(1030) : error 001expected token";"but found "}"
/home/groups/amxmodx/tmp3/phpRBuDIE.sma(1032) : warning 217loose indentation
/home/groups/amxmodx/tmp3/phpRBuDIE.sma(1091) : warning 217loose indentation
/home/groups/amxmodx/tmp3/phpRBuDIE.sma(1091) : error 029invalid expressionassumed zero
/home/groups/amxmodx/tmp3/phpRBuDIE.sma(1091) : error 017undefined symbol "EventCurWeapon"
/home/groups/amxmodx/tmp3/phpRBuDIE.sma(1115) : error 029invalid expressionassumed zero
/home/groups/amxmodx/tmp3/phpRBuDIE.sma(1115) : error 004: function "pfn_touch" is not implemented
/home/groups/amxmodx/tmp3/phpRBuDIE.sma(1115) : warning 215expression has no effect
/home/groups/amxmodx/tmp3/phpRBuDIE.sma(1115) : error 001expected token";"but found ")"
/home/groups/amxmodx/tmp3/phpRBuDIE.sma(1115) : fatal error 107too many error messages on one line 

Could any1 please have a look? :S

drekes 01-10-2011 18:42

Re: errrors trying to add BoxMenu to SCM
 
Line 1028, 1029, 1030 are not indented right.
Forgot a semicolon on line 1029
and a } on line 131

fysiks 01-10-2011 22:01

Re: errrors trying to add BoxMenu to SCM
 
I have a feeling you did not write that plugin . . .

What's up with the triplicated AMXX Studio crap at the bottom?


Quote:

Originally Posted by drekes (Post 1390936)
Line 1028, 1029, 1030 are not indented right.
Forgot a semicolon on line 1029
and a } on line 131

131?

Shadezz 01-11-2011 09:21

Re: errrors trying to add BoxMenu to SCM
 
lol, yes i did.. and for the trimplicated AMXX studio thing, i dont know :S? ive been using amx studio to edit in..

Shadezz 01-11-2011 09:23

Re: errrors trying to add BoxMenu to SCM
 
Quote:

Originally Posted by drekes (Post 1390936)
Line 1028, 1029, 1030 are not indented right.
Forgot a semicolon on line 1029
and a } on line 131

and what do u mean by that? :S i really dont get theese errors

drekes 01-11-2011 09:58

Re: errrors trying to add BoxMenu to SCM
 
Quote:

Originally Posted by fysiks (Post 1391013)
I have a feeling you did not write that plugin . . .

What's up with the triplicated AMXX Studio crap at the bottom?




131?

Sorry, ment 1031.

change line 1016 - 1031 from this:
PHP Code:

        else if ( IsBox(ent) )
        {
            static 
property1[5], property2[5], property3[5], property4[5];
            
            
GetProperty(ent1property1);
            
GetProperty(ent2property2);
            
GetProperty(ent3property3);
            
GetProperty(ent4property4);
            
            
set_hudmessage(025500.010.1800.01.00.250.252);
            
show_hudmessage(id"%s %s^nType: Box^nColor Red: %s^nColor Green: %s^nColor Blue: %s"PLUGIN_PREFIXPLUGIN_VERSIONproperty1property2property3);
    
    
set_hudmessage(25500, -1.00.01);
    
show_hudmessage(id"<Hudmessage>")
    } 

to this:
PHP Code:

        else if ( IsBox(ent) )
        {
            static 
property1[5], property2[5], property3[5], property4[5];
            
            
GetProperty(ent1property1);
            
GetProperty(ent2property2);
            
GetProperty(ent3property3);
            
GetProperty(ent4property4);
            
            
set_hudmessage(025500.010.1800.01.00.250.252);
            
show_hudmessage(id"%s %s^nType: Box^nColor Red: %s^nColor Green: %s^nColor Blue: %s"PLUGIN_PREFIXPLUGIN_VERSIONproperty1property2property3);
    
            
set_hudmessage(25500, -1.00.01);
            
show_hudmessage(id"<Hudmessage>");
        }
    } 


Shadezz 01-11-2011 10:43

Re: errrors trying to add BoxMenu to SCM
 
thanks drekes! :D


*Thread closed*


All times are GMT -4. The time now is 01:58.

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