Raised This Month: $ Target: $400
 0% 

auto-mix code doesnt work but it compiles


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bobmirk
Junior Member
Join Date: Aug 2012
Location: Braga, Portugal
Old 01-05-2013 , 19:49   auto-mix code doesnt work but it compiles
Reply With Quote #1

hi guys i changed this to get the last round for the team that is in advantage. i thougt it works but the code fails in 1 situation when the teams don't swap at the beggining (g_twon) it always says that team b is going to win even when is team a. But with g_twon case there is no problem,,,


public LRFif() {
if ((g_iScore[1] == 16) || (g_iScore[0] == 16))
return PLUGIN_HANDLED

if (g_Twon)
{
if (g_bSecondHalf)
{
if(g_iScore[0] > g_iScore[1])
{
set_hudmessage(255, 255, 255, 0.06, 0.62, 0, 6.0, 12.0)
ShowSyncHudMsg(0, g_MsgSync6, "Falta 1 ronda para a Equipa A vencer^n (Equipa A) %d - %d (Equipa B)", g_iScore[0], g_iScore[1])
}

else
set_hudmessage(255, 255, 255, 0.06, 0.62, 0, 6.0, 12.0)
ShowSyncHudMsg(0, g_MsgSync6, "Falta 1 ronda para a Equipa B vencer^n (Equipa A) %d - %d (Equipa B)", g_iScore[0], g_iScore[1])
}
}


else
{
-- this part always put team b in advantge --
if (g_bSecondHalf)
{

if(g_iScore[1] > g_iScore[0])
{
set_hudmessage(255, 255, 255, 0.06, 0.62, 0, 6.0, 12.0)
ShowSyncHudMsg(0, g_MsgSync6, "Falta 1 ronda para a Equipa A vencer^n (Equipa A) %d - %d (Equipa B)", g_iScore[1], g_iScore[0])
}

else
set_hudmessage(255, 255, 255, 0.06, 0.62, 0, 6.0, 12.0)
ShowSyncHudMsg(0, g_MsgSync6, "Falta 1 ronda para uma Equipa B vencer^n (Equipa A) %d - %d (Equipa B)", g_iScore[1], g_iScore[0])
}
}



return PLUGIN_HANDLED

}

Last edited by bobmirk; 01-06-2013 at 09:03.
bobmirk is offline
Reply



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 13:44.


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