|
Senior Member
Join Date: Mar 2007
Location: Venezuela
|
07-07-2009
, 00:30
Re: [YAP] - Yet Another PUG
|
#11
|
sup usabra =)
about the error with score when are tied,
i found this in yap core,
public pug_swap_team(id,params)
{
new a = get_param(1)
new b = get_param(2)
static team_name_a[32]
formatex(team_name_a,31,"%s",pug_teams[a])
formatex(pug_teams[a],31,"%s",pug_teams[b])
formatex(pug_teams[b],31,"%s",team_name_a)
new team_score_a = pug_score[a]
pug_score[a] = pug_score[b]
pug_score[b] = team_score_a
}
if i use
new a = get_param(1)
new b = get_param(2)
and in this part
if(top_team == 0) formatex(team_name,49,"%L",id,"PUG_SCORE_TIED ")
chage it for
if (pug_score[a] == pug_score[b]....
should it work? i try but it didn't =/
there should be a simple form to get score from team a and b and make the comparation
another question is there a way to debug the plugin? or any change that i make it need to wait for 10 player ....
Last edited by liryck; 07-07-2009 at 01:38.
|
|
|
|