Compilemise viga...
Lehekülg 1, lehekülgi kokku 1 • Share
- WieFFe
- Liitus : 24/06/2014
Postitusi : 1565
Mul tuleb compilemisel selline error:
Kood on selline:
PS:
Kui tonight seda loeb, siis pls lisa veel asju, mis sobiks surf vipmenüü'sse.
Kood on selline:
- Kood:
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <engine>
#include <hamsandwich>
#define PLUGIN "VIPMenüü"
#define VERSION "1.0"
#define AUTHOR "Hyzz"
new bool:has_used[33]
public plugin_init()
{
register_clcmd( "say /vipmenu", "VIPMenu" );
register_clcmd( "say_team /vipmenu", "VIPMenu" );
register_logevent("event_new_round", 2, "1=Round_Start")
}
public VIPMenu( id )
{
if(!has_used[id])
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
new vip_menu = menu_create( "\ VIP MenĆ¼Ć¼", "menu_handler" ); //
menu_additem( vip_menu, "\ Ak47 + Deagle", "1", 0 );
menu_additem( vip_menu, "\ M4A1 + Deagle", "4", 0 );
menu_additem( vip_menu, "\ M3;Deagle;125hp", "2", 0 );
menu_additem( vip_menu, "\ 125hp", "5", 0 );
menu_additem( vip_menu, "\ Gravity", "3", 0);
menu_setprop( vip_menu, MPROP_EXIT, MEXIT_ALL );
menu_display( id, vip_menu, 0 );
}
else
{
client_print(id, print_chat, "[FAST] Sa pead ostma VIP'i, et kasutada vipmenĆ¼Ć¼d!")
}
}
else
{
client_print(id, print_chat, "[FAST] Sa ei saa kasutada VipmenĆ¼Ć¼d 2 korda jƤrjest")
}
}
public menu_handler( id, menu, item )
{
if( item == MENU_EXIT )
{
menu_destroy( menu );
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo( menu, item, access, data,5, iName, 63, callback );
new key = str_to_num( data );
switch( key )
{
case 1:
{
if( is_user_alive( id ) )
{
give_item(id, "weapon_ak47")
give_item( id, "weapon_deagle" )
}
}
case 2:
{
if( is_user_alive( id ) )
{
give_item( id, "weapon_deagle" )
give_item( id, "weapon_m3" )
}
}
}
case 3:
{
if( is_user_alive( id ) )
{
set_user_gravity( id, 0.5 );
}
}
case 4:
{
if( is_user_alive( id ) )
{
give_item(id, "weapon_m4a1")
give_item( id, "weapon_deagle" )
}
}
case 4:
{
if( is_user_alive( id ) )
{
set_user_health( id, 25 );
}
}
}
has_used[id] = true;
menu_destroy( menu );
return PLUGIN_HANDLED;
}
public event_new_round()
arrayset(has_used, false, 33)
PS:
Kui tonight seda loeb, siis pls lisa veel asju, mis sobiks surf vipmenüü'sse.
- Tonight
- Liitus : 19/02/2012
Postitusi : 18000
Parandasin ainult errorid ära:
- Kood:
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <engine>
#include <hamsandwich>
#define PLUGIN "VIPMenüü"
#define VERSION "1.0"
#define AUTHOR "Hyzz"
new bool:has_used[33]
public plugin_init()
{
register_clcmd( "say /vipmenu", "VIPMenu" );
register_clcmd( "say_team /vipmenu", "VIPMenu" );
register_logevent("event_new_round", 2, "1=Round_Start")
}
public VIPMenu( id )
{
if(!has_used[id])
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
new vip_menu = menu_create( " VIP MenĆ¼Ć¼", "menu_handler" ); //
menu_additem( vip_menu, " Ak47 + Deagle", "1", 0 );
menu_additem( vip_menu, " M4A1 + Deagle", "4", 0 );
menu_additem( vip_menu, " M3;Deagle;125hp", "2", 0 );
menu_additem( vip_menu, " 125hp", "5", 0 );
menu_additem( vip_menu, " Gravity", "3", 0);
menu_setprop( vip_menu, MPROP_EXIT, MEXIT_ALL );
menu_display( id, vip_menu, 0 );
}
else
{
client_print(id, print_chat, "[FAST] Sa pead ostma VIP'i, et kasutada vipmenĆ¼Ć¼d!")
}
}
else
{
client_print(id, print_chat, "[FAST] Sa ei saa kasutada VipmenĆ¼Ć¼d 2 korda jƤrjest")
}
}
public menu_handler( id, menu, item )
{
if( item == MENU_EXIT )
{
menu_destroy( menu );
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo( menu, item, access, data,5, iName, 63, callback );
new key = str_to_num( data );
switch( key )
{
case 1:
{
if( is_user_alive( id ) )
{
give_item(id, "weapon_ak47")
give_item( id, "weapon_deagle" )
}
}
case 2:
{
if( is_user_alive( id ) )
{
give_item( id, "weapon_deagle" )
give_item( id, "weapon_m3" )
}
}
case 3:
{
if( is_user_alive( id ) )
{
set_user_gravity( id, 0.5 );
}
}
case 4:
{
if( is_user_alive( id ) )
{
give_item( id, "weapon_m4a1")
give_item( id, "weapon_deagle" )
}
}
case 5:
{
if( is_user_alive( id ) )
{
set_user_health( id, 25 );
}
}
}
has_used[id] = true;
menu_destroy( menu );
return PLUGIN_HANDLED;
}
public event_new_round()
arrayset(has_used, false, 33)
Soovid vestluses osaleda?
Selleks logi sisse või tee endale kasutaja.
Lehekülg 1, lehekülgi kokku 1
Permissions in this forum:
Sa ei saa vastata siinsetele teemadele