hello
i have xp mod.
so i have ...
Code:
public plugin_init()
{
register_plugin("xxxxx", VERSION, "xxxxxxx")
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
register_logevent("event_game_commencing", 2, "1=Game_Commencing")
register_concmd("amx_start", "start_cmd", ADMIN_KICK)
register_concmd("amx_stop", "stop_cmd", ADMIN_KICK)
register_dictionary("xxxxxxx.txt")
g_cvarDomEnabled = register_cvar("amx_dom_enabled", "1")
g_cvarMapEndTime = register_cvar("amx_mapendtime", "0.5")
g_cvarTieMatch = register_cvar("amx_tiematch", "0")
g_cvarUseRadio = register_cvar("amx_useradio", "1")
g_msgidProgress = get_user_msgid("BarTime2")
g_msgidScoreInfo = get_user_msgid("ScoreInfo")
g_msgidIcon = get_user_msgid("StatusIcon")
g_msgidSayText = get_user_msgid("SayText")
g_msgidHostagePos = get_user_msgid( "HostagePos" );
g_msgidHostageK = get_user_msgid( "HostageK" );
g_MaxPlayers = get_maxplayers()
if(get_pcvar_num(g_cvarDomEnabled)) {
if(load_config()) {
xxxxxx_init()
}
}
#if defined DEBUG_TOOLS
register_concmd("xxxxxx", "xxxxxxx")
register_concmd("xxxxxxx", "xxxxxxxx")
new mapname[32]
new msg[128]
get_mapname(mapname, 31)
open_debug_file()
format(msg, 127, "***^nStarting Debug Section^nMap: %s^n***", mapname)
debug_print(0, msg)
close_debug_file()
#endif
set_task( float( RADAR_FQC ) ,"RadarLoop", 547847, _, _, "b" );
}
public plugin_precache()
{
precache_model(MODEL_XXXXXX)
precache_sound(g_NotifySound[0])
precache_sound(g_NotifySound[1])
}
and it works
but i want join one more plugin (exactly that one -->
http://forums.alliedmods.net/showthread.php?t=1291)
so i put...
Code:
new menutext[77]
new keysentered[33][8]
new loop[33]
that on the top (undex the #include<amxmodx>
next...
Code:
register_plugin("Admin In-game Access","0.16","ts2do")
format(menutext,77,"\yEnter Code:\w^n \y1 \w2 \y3^n \w4 \y5 \w6^n \y7 \w8 \y9^n \wExit. 0 ")
register_menucmd(register_menuid(menutext),1023,"loginContinue")
register_clcmd("say /login","login")
register_cvar("login_code","12345678")
register_cvar("login_flags","bcdefghijklmnopqrstu")
register_cvar("login_stop","You don't wanna continue at this, do you?")//lol
that i insert in public plugin_init()
just on TOP.
i remove "register_plugin line..."
-----------
and just after public plugin_init() when it ends with }
i paste last part
Code:
public loginContinue(id,key){
loop[id]++
new strKey[8]
num_to_str(key+1,strKey,7)
format(keysentered[id],32,"%s%s",keysentered[id],strKey)
new code[33]
get_cvar_string("login_code",code,32)
if(equal(keysentered[id],code)){
new userflags[128]
get_cvar_string("login_flags",userflags,127)
set_user_flags(id,read_flags(userflags))
new username[32]
get_user_name(id,username,31)
client_print(id,print_chat,"Welcome, %s, you are now logged in",username)
return PLUGIN_HANDLED
}
if((key==9)){
loop[id]=0
keysentered[id]=""
return PLUGIN_HANDLED
}
if(loop[id]>=15){
new ender[128]
get_cvar_string("login_stop",ender,127)
if(strlen(ender))
client_print(id,print_chat,"%s",ender)
}
showmenu(id)
return PLUGIN_CONTINUE
}
public showmenu(id)
show_menu(id,1023,menutext)
public login(id){
showmenu(id)
return PLUGIN_HANDLED
}
but on compiling there is 2 errors...
Warning: Loose indentation on line 474
Warning: Loose indentation on line 475
474:format(loginmenu,77,"\yEnter Code:\w^n \y1 \w2 \y3^n \w4 \y5 \w6^n \y7 \w8 \y9^n \wExit. 0 ")
and
475:register_menucmd(register_menuid(loginmen u),1023,"loginContinue")
can you guys tell me what that error means ? and why it DOESNT work ?