Raised This Month: $ Target: $400
 0% 

Error someone help me?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Michell
Member
Join Date: Oct 2015
Old 10-25-2015 , 20:41   Error someone help me?
Reply With Quote #1

Can anyone help me?
When the sum of the winner or winner 2 comes in 16 it performs:
Resultado ()
set_task (3.0, "fun1")
set_task (3.0 "MaisFrg")

so that running 2 times, and thus having duplication in messages and vote maps that lies within fun1.
Quote:
register_event("TeamScore", "EventTeamScore", "a")
Quote:
public EventTeamScore(){
if(iLive){
new team[32];
read_data(1,team,31);

if (equal(team,"CT"))
{
iPonto[ 1 ] = read_data(2);
}
else if (equal(team,"TERRORIST"))
{
iPonto[ 0 ] = read_data(2);
}

new SomaTempo = iPonto[ 1 ] + iPonto[ 0 ]
new SomaWinner = iPonto[ 1 ] + iPrim[ 1 ]
new SomaWinner2 = iPonto[ 0 ] + iPrim[ 0 ]
new SomaOverTime = iPonto[ 1 ] + iOver[ 1 ]
new SomaOverTime2 = iPonto[ 0 ] + iOver[ 0 ]

if(iNorT){

if(SomaTempo == 15){
//troca time normal
//SomaTotalNormal()

FragMeio = Frager();
MaisFraguer1 = get_user_frags(FragMeio)

SomaPriTempo()

Tempo++
set_task(3.0,"TrocaLado")

}
if(SomaWinner == 16){
//Aviso de Ganhador
//SomaTotalNormal()

FragFinal = Frager();
MaisFraguer2 = get_user_frags(FragFinal)

//CT WIN
CTWins()
Resultado()
set_task(3.0,"Fun1")
set_task(3.0,"MaisFrg")

}
if(SomaWinner2 == 16){
//Aviso de Ganhador
//SomaTotalNormal()

FragFinal = Frager();
MaisFraguer2 = get_user_frags(FragFinal)

//TR WIN
TRWins()
Resultado()
set_task(3.0,"Fun1")
set_task(3.0,"MaisFrg")

}
if(SomaWinner == 15 && SomaWinner2 == 15){
//TrocaLado()
//SomaTotalNormal()

if(get_pcvar_num(VarMD3) == 1){

FragFinal = Frager()
MaisFraguer2 = get_user_frags(FragFinal)

EmpateFinal()
set_task(3.0,"Fun1")
set_task(3.0,"MaisFrg")

}
else if(get_pcvar_num(VarMD3) != 1){

FragFinal = Frager()
MaisFraguer2 = get_user_frags(FragFinal)

SomaPriSegTempo()
Empate()
OverTime()
set_task(3.0,"TrocaLado")
}

}
}
if(iOvT){
if(SomaTempo == 3){
//troca time Over
//SomaTotalNormal()

FragMeioOver = Frager();
MaisFraguerOT2 = get_user_frags(FragMeioOver)

SomaPriOver()

Tempo++
set_task(3.0,"TrocaLado")
}
if(SomaOverTime == 4){
//aviso do ganhador
//SomaTotalNormal()

FragFinalOver = Frager();
MaisFraguerOT1 = get_user_frags(FragFinalOver)

//CT WIN
CTWinsOT()
ResultadoOT()
set_task(3.0,"Fun1")
set_task(3.0,"MaisFrg")
set_task(3.0,"MaisFrgOT")
}
if(SomaOverTime2 == 4){
//Aviso do Ganhador
//SomaTotalNormal()

FragFinalOver = Frager();
MaisFraguerOT1 = get_user_frags(FragFinalOver)

//TR WIN
TRWinsOT()
ResultadoOT()
set_task(3.0,"Fun1")
set_task(3.0,"MaisFrg")
set_task(3.0,"MaisFrgOT")
}
if(SomaOverTime == 3 && SomaOverTime2 == 3){
//empate
//SomaTotalNormal()

FragFinalOver = Frager();
MaisFraguerOT1 = get_user_frags(FragFinalOver)

// EMPATE
EmpateOT()
ResultadoOT()
set_task(3.0,"Fun1")
set_task(3.0,"MaisFrg")
set_task(3.0,"MaisFrgOT")

}
}
}
}
Quote:
public Fun1(){
iPonto[ 1 ] = 0
iPrim[ 1 ] = 0
iPonto[ 0 ] = 0
iPrim[ 0 ] = 0
iLive = false
iFun = true
Ready = 0
ReFun()
set_task(7.0,"ServerVoteMap")
client_cmd(0,"speak ^"deeoo.system deactivated")
}
Michell is offline
 



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:10.


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