Raised This Month: $ Target: $400
 0% 

[HELP] Compile Error.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
malec321
Senior Member
Join Date: May 2009
Location: Los Angeles
Old 06-29-2009 , 02:10   [HELP] Compile Error.
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>

new PLUGIN[]="Dewys First Plugin"
new AUTHOR[]="SYOPS `dewY*"
new VERSION[]="1.0"

public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_clcmd"say /menu""cmdPmenu" );
register_clcmd"say_team /menu""cmdPmenu" );


}

public 
cmdPmenuid )
{
if ( 
is_user_alive id ) )
{
set_task1.0"Pmenu"id )
}
else if ( !
is_user_alive id ) )
{
client_print idprint_chat"Try when alive" )
}
}

public 
Pmenuid )
{
new 
menu menu_create "Dewys Menu""P_Menu" )

menu_additem menu"Gimme HEALTH!""1"0)
menu_additem menu"Gimme ARMOR!""2"0)
menu_additem menu"Gimme STEALTH""3"0)
menu_additem menu"Gimme GRAVITY!""4"0)

menu_setprop menuMPROP_EXITMEXIT_NEVER );
menu_display (idmenu)
return 
PLUGIN_HANDLED;
}

public 
P_Menu idmenuitem )
{

new 
data], iName64 ], accesscallback;

menu_item_getinfo menuitemaccessdata5iName63callback )
new 
key str_to_num data )

switch ( 
key )
{
case 
1:

set_user_health id200 )
{
client_print idprint_chat"FUCK YEAH 200HEALTH!" );
}
}
case 
2:

set_user_armor id200 )
{
client_print idprint_chat"FUCK YEAH 200ARMOR!" );
}
}
case 
3:
{
set_user_rendering idkRenderFxGlowShell000kRenderTransAlpha45 )
{
client_print idprint_chat"FUCK YEAH STEALTH!" );
}
}
case 
4:
{
set_user_gravityid1.0 200 )
{
client_print idprint_chat"FUCK YEAH LOW GRAV!" );
}

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

C:\Users\Alec2\Desktop\temp876.inc(82) : error 001: expected token: "}", but found "-end of file-"

1 Error.
Could not locate output file C:\Users\Alec2\Desktop\dewy.amx (compile failed).

Compilation Time: 2.30 sec

-.-

wat did i do wrong at the end i know its with the brackets but i tryed all of em.
malec321 is offline
 



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 15:38.


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