Page 2 of 2
Re: klausimas dėl include naudojimo
Posted: 2011 Mar 06 16:17
by aurimasko
aaarnas wrote:Code: Select all
register_event("TeamInfo", "team_change", "a")public team_change() { new id = read_data(1) new team[15] read_data(2, team, charsmax(team)) switch(team[0]) { case 'T': p_team[id] = 1 case 'C': p_team[id] = 2 }}
Ačiū už paaiškinimus.

+karma
Re: klausimas dėl include naudojimo
Posted: 2011 Mar 06 19:46
by newb
aaarnas wrote:Code: Select all
register_event("TeamInfo", "team_change", "a")public team_change() { new id = read_data(1) new team[15] read_data(2, team, charsmax(team)) switch(team[0]) { case 'T': p_team[id] = 1 case 'C': p_team[id] = 2 }}
Kam naudoti team[15], jei pilnai uztektu team[2] ? ^^
Re: klausimas dėl include naudojimo
Posted: 2011 Mar 06 21:16
by aaarnas
Šiaip tu teisus, bet šioje vietoje visiškai jokio skirtumo :]
Re: klausimas dėl include naudojimo
Posted: 2011 Mar 12 15:48
by aurimasko
o kaip tokiu budu surasti žaidėjo flagus?
Re: klausimas dėl include naudojimo
Posted: 2011 Mar 12 16:20
by newb
Tokiu tai kokiu ?..
Re: klausimas dėl include naudojimo
Posted: 2011 Mar 12 17:26
by aurimasko
newb wrote:Tokiu tai kokiu ?..
# register_event("TeamInfo", "team_change", "a")
# public team_change() {
#
# new id = read_data(1)
# new team[15]
# read_data(2, team, charsmax(team))
# switch(team[0]) {
# case 'T': p_team[id] = 1
# case 'C': p_team[id] = 2
# }
# }
Re: klausimas dėl include naudojimo
Posted: 2011 Mar 12 20:13
by newb
I tavo "konkretu" klausyma atsakysiu: taip flaga gaut galima
Code: Select all
public team_change() { new id = read_data(1) new flags = get_user_flags(id) // flago gavimas...}