Funkcja mala
false
25.04.2010
return PLUGIN_CONTINUE } xxxxx(id,lx[]) { if(is_user_bot(id)) return PLUGIN_HANDLED; new flags[14] get_cvar_string("xxxxxxxxxxxxxxxxxxxxxxxxxxx",flags,14) new text[512] //new keys = read_flags(flags) asked_klass[id]=0 format(text, 511,"\yxxxxxx - ^n") for(new i=0;i<13;i++) { format(text, 511,"%s%s%d. \y%s Level :\r%d ^n",text,(keyss)&(1<<i)?"\w":"\d",i+1,Race[i+1], lx[i+1]) } format(text, 511,"%s^n0. xxxxxxx^n",text) show_menu(id, keyss, text) /*zzzzzz { format(text, 511,"%s^n1. xxxxx^n",text) show_menu(id, keyss2, text) }*/ return PLUGIN_CONTINUE; } public select_class_menu(id,key) { new lx[14] g_haskit[id] = 0 switch(keyss) { case 0: { XXXX } case 1: { YksYks } } LoadXP(id, player_class[id]) CurWeapon(id) give_knife(id) return PLUGIN_HANDLED }
Czy to będzie działać ? W case mają być menu Chodzi o to czy to menu otwierajace beda mialy te naglowki co w gorze ; d ja mam xxxxx bo to nazwy : /
Edited by Ghoscik, 25.04.2010 19:28.
false
26.04.2010
Powinno, najlepiej sprawdzic.
Nie działa co moze byc zle ? menu mam porobione pod case 0 i 1 : /
Vertricus
26.04.2010
Może to:
Dokładniej wyżej zakomentowane keyss
format(text, 511,"%s^n0. xxxxxxx^n",text)
show_menu(id, keyss, text)
/*zzzzzz {
format(text, 511,"%s^n1. xxxxx^n",text)
show_menu(id, keyss2, text)
Dokładniej wyżej zakomentowane keyss
false
26.04.2010
Może to:
format(text, 511,"%s^n0. xxxxxxx^n",text)
show_menu(id, keyss, text)
/*zzzzzz {
format(text, 511,"%s^n1. xxxxx^n",text)
show_menu(id, keyss2, text)
Dokładniej wyżej zakomentowane keyss
to nie trzeba tego ? napisalbys mi na tym co tam wyslalem jak to ma wygladac ? : x
false
27.04.2010
A błędy ? ; d
L 03/27/2010 - 22:03:08: [AMXX] Displaying debug trace (plugin "diablo2.amxx")
L 03/27/2010 - 22:03:08: [AMXX] Run time error 4: index out of bounds
L 03/27/2010 - 22:03:08: [AMXX] [0] diablo2.sma::select_class (line 4693)
L 03/27/2010 - 22:03:08: [AMXX] [1] diablo2.sma::select_class_handle (line 4672)
Linia 4672 :
select_class(id,lx)
Linia 4693 :
for(new i=0;i<13;i++)
{
format(text, 511,"%s%s%d. \y%s Level :\r%d ^n",text,(keyss)&(1<<i)?"\w":"\d",i+1,Race[i+1], lx[i+1])
}
To kawalek