←  Problemy

AMXX.pl: Support AMX Mod X i SourceMod

»

pytanie

Locked

  • +
  • -
false's Photo false 08.04.2010

/groups/amxmodx/tmp3/textsjzbTX.sma(4626) : error 054: unmatched closing brace

Co znaczy ten blad?
Quote

  • +
  • -
mgr inż. Pavulon's Photo mgr inż. Pavulon 08.04.2010

masz za dużo klamer zamykających
Quote

  • +
  • -
false's Photo false 08.04.2010

masz za dużo klamer zamykających

/groups/amxmodx/tmp3/text1u6jBb.sma(4627) : error 078: function uses both "return" and "return "
a to ?

return PLUGIN_CONTINUE;

Tak mam napisane.
Quote

  • +
  • -
LoleczeQ's Photo LoleczeQ 08.04.2010

A po co to ";" ? Powinno być samo return PLUGIN_CONTINUE
Quote

  • +
  • -
false's Photo false 08.04.2010

A po co to ";" ? Powinno być samo return PLUGIN_CONTINUE


No ale to nic nie daje :/

Taki blad wyskakuje

/groups/amxmodx/tmp3/text7iF3aS.sma(4607) : warning 209: function "select_class" should return a value
/groups/amxmodx/tmp3/text7iF3aS.sma(4627) : error 078: function uses both "return" and "return "

Pomocy ;d
Quote

  • +
  • -
Vertricus's Photo Vertricus 08.04.2010

Sma?
mhm zapewne return masz i return Wartość ;|
Tj. 2 że się tak wyrażę typy restun'ów :D a powinna tylko jeden typ $)
Quote

  • +
  • -
false's Photo false 09.04.2010

}



public select_class(id,lx[])

{

if(is_user_bot(id)) return

new flags[10]

get_cvar_string("diablo_classes",flags,13)

new text[512]

//new keys = read_flags(flags)



asked_klass[id]=0



format(text, 511,"\yWybierz Klase - ^n")



for(new i=0;i<8;i++)

{

format(text, 511,"%s%s%d. %s  Level :%d ^n",text,(keyss)&(1<<i)?"\w":"\d",i+1,Race[i+1], lx[i+1])

}

format(text, 511,"%s^n0. xxx^n",text)

show_menu(id, keyss, text)

{

/*Daaaalej{

format(text, 511,"%s^n1. xxx^n",text)

show_menu(id, keyss2, text)

*/}

return PLUGIN_CONTINUE

}
Quote

  • +
  • -
G[o]Q's Photo G[o]Q 09.04.2010

public select_class(id,lx[])

{

if(is_user_bot(id)) return

new flags[10]

get_cvar_string("diablo_classes",flags,13)

new text[512]

//new keys = read_flags(flags)



asked_klass[id]=0



format(text, 511,"\yWybierz Klase - ^n")



for(new i=0;i<8;i++)

{

format(text, 511,"%s%s%d. %s  Level :%d ^n",text,(keyss)&(1<<i)?"\w":"\d",i+1,Race[i+1], lx[i+1])

}

format(text, 511,"%s^n0. xxx^n",text)

show_menu(id, keyss, text)



return PLUGIN_CONTINUE

}
Quote

  • +
  • -
false's Photo false 09.04.2010

public select_class(id,lx[])
{
if(is_user_bot(id)) return
new flags[10]
get_cvar_string("diablo_classes",flags,13)
new text[512]
//new keys = read_flags(flags)

asked_klass[id]=0

format(text, 511,"\yWybierz Klase - ^n")

for(new i=0;i<8;i++)
{
format(text, 511,"%s%s%d. %s  Level :%d ^n",text,(keyss)&(1<<i)?"\w":"\d",i+1,Race[i+1], lx[i+1])
}
format(text, 511,"%s^n0. xxx^n",text)
show_menu(id, keyss, text)

return PLUGIN_CONTINUE
}


ale ja chce zeby pod 0 i 1 byl napis tzn. jak masz pod 9. Dalej to ja wlasnie chce pod 0. i 1. Napisy
Quote

  • +
  • -
G[o]Q's Photo G[o]Q 09.04.2010

public select_class(id,lx[])

{

if(is_user_bot(id)) return

new flags[10]

get_cvar_string("diablo_classes",flags,13)

new text[512]

//new keys = read_flags(flags)



asked_klass[id]=0



format(text, 511,"\yWybierz Klase - ^n")



for(new i=0;i<8;i++)

{

format(text, 511,"%s%s%d. %s  Level :%d ^n",text,(keyss)&(1<<i)?"\w":"\d",i+1,Race[i+1], lx[i+1])

}

format(text, 511,"%s^n0. xxx^n",text)

show_menu(id, keyss, text)



/*Daaaalej

format(text, 511,"%s^n1. xxx^n",text)

show_menu(id, keyss2, text)

*/

return PLUGIN_CONTINUE

}
Quote

  • +
  • -
false's Photo false 09.04.2010

/groups/amxmodx/tmp3/textKj2WeY.sma(4607) : warning 209: function "select_class" should return a value
/groups/amxmodx/tmp3/textKj2WeY.sma(4627) : error 078: function uses both "return" and "return "

1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/textKj2WeY.amx (compile failed).

Dalej nie dziala.
Quote

  • +
  • -
G[o]Q's Photo G[o]Q 09.04.2010

if(is_user_bot(id)) return
:?:
Quote

  • +
  • -
false's Photo false 09.04.2010

if(is_user_bot(id)) return
:?:


To co mam tam dac ?
Quote

  • +
  • -
G[o]Q's Photo G[o]Q 09.04.2010

PLUGIN_HANDLED :?:
Quote

  • +
  • -
false's Photo false 10.04.2010

PLUGIN_HANDLED :?:


dzięki G[o]Q dziala, mozna zamknąć.
Quote

Adminek AMXX.PL's Photo Adminek AMXX.PL 10.04.2010

Wiadomość wygenerowana automatycznie


Ten temat został zamknięty przez moderatora.

Powód: Problem rozwiązany

Jeśli się z tym nie zgadzasz, Dołączona grafika raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.


Z pozdrowieniami,
Zespół AMXX.PL
Quote
Locked