Raised This Month: $51 Target: $400
 12% 

[YAP] - Yet Another PUG


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
liryck
Senior Member
Join Date: Mar 2007
Location: Venezuela
Old 07-07-2009 , 00:30   Re: [YAP] - Yet Another PUG
Reply With Quote #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.
liryck is offline
Send a message via MSN to liryck
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode