|
Member
|

05-10-2014
, 20:34
Error compiling
|
#1
|
Hey, I'm trying to compile my jailbreak vip menu, my error is this:
Quote:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team
Warning: Loose indentation on line 262
Error: Invalid expression, assumed zero on line 262
Warning: Loose indentation on line 265
Error: Invalid statement; not in switch on line 265
Warning: Expression has no effect on line 265
Error: Expected token: ";", but found ":" on line 265
Error: Invalid expression, assumed zero on line 265
Error: Too many error messages on one line on line 265
Compilation aborted.
5 Errors.
Could not locate output file C:\Users\xxxxx\Documents\amx\jbvip.amx (compile failed).
|
My code is this(I've given lines 209-300):
PHP Code:
} case 4: { if( is_user_alive( id ) ) { if( cs_get_user_team( id ) == CS_TEAM_CT ) { if ( u_kit [ id ] ) { u_kit [ id ] = 0 new Client[32] get_user_name(id,Client,31) give_item(id, "weapon_hegrenade"); give_item(id, "weapon_flashbang"); give_item(id, "weapon_flashbang"); give_item(id, "weapon_smokegrenade"); give_item(id, "weapon_deagle"); cs_set_user_bpammo(id, CSW_DEAGLE, 35); cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM); give_item(id, "weapon_m4a1"); cs_set_user_bpammo(id, CSW_M4A1, 90); ColorChat(0, GREY, "^x04%s^x03 ' ^4%s^3 ' used the VIP Menu to get a^4 Colt^3!", prefix, Client ) } else ColorChat(id, GREY, "^x04%s^x03 You have already picked a kit!", prefix ) } else ColorChat(id, GREY, "^x04%s^x03 You need to be a^04 Counter Terrorist^03 to get^4 Weapons^3.", prefix ) } else ColorChat(id, GREY, "^x04%s^x03 You're dead, you can't use this command!", prefix ) } case 5: { if ( get_gametime ( ) < u_noclip [ id ] + 60 ) { ColorChat ( id, GREY, "^x04%s^x03 You must wait^4 %i^3 seconds before you can use noclip.", prefix, floatround ( u_noclip [ id ] + 60 - get_gametime ( ) + 1 ) ) return PLUGIN_HANDLED } else { if(is_user_alive(id)) { u_noclip [ id ] = get_gametime ( ) { set_user_noclip ( id, 1 ) new Client[32] get_user_name(id,Client,31) ColorChat ( 0, GREY, "^x04%s^x03 ' ^4%s^3 ' used the VIP Menu to get^4 Noclip^3!", prefix, Client ) set_task ( 10.0, "CmdNoclipOff", id ) } else ColorChat(id, GREY, "^x04%s^x03 You're dead, you can't use this command!", prefix ) } } case 6: { ShowGlowMenuColor(id) } case 7: { if ( get_gametime ( ) < u_drugs [ id ] + 15 ) { ColorChat ( id, GREY, "^x04%s^x03 You must wait^4 %i^3 seconds before you can use drugs.", prefix, floatround ( u_drugs [ id ] + 15 - get_gametime ( ) + 1 ) ) return PLUGIN_HANDLED } else { if(is_user_alive(id)) { u_drugs [ id ] = get_gametime ( ) ShowDrug(id) } else ColorChat(id, GREY, "^x04%s^x03 You're dead, you can't use this command!", prefix ) } } case 8: { if ( get_gametime ( ) < u_map [ id ] + 600 ) { ColorChat ( id, GREY, "^x04%s^x03 You must wait^4 %i^3 seconds before you can vote map.", prefix, floatround ( u_map [ id ] + 600 - get_gametime ( ) + 1 ) ) return PLUGIN_HANDLED } else { Startmapvote ( id ) } } case 9: {
Can anyone fix these errors for me please?
Last edited by Bloods; 05-10-2014 at 20:38.
|
|