Raised This Month: $ Target: $400
 0% 

Solved Save score of each team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-27-2018 , 12:19   Re: Save score of each team
Reply With Quote #9

Quote:
Originally Posted by iceeedr View Post
If there is any way to "count" how many times the event is called already help, since I can set the global == called times.

sorry for bump.
Tried this...but :/

PHP Code:
public EventTeamScore()
{
    if(
TPlacar CPlacar == 4)
    {
        
formatex(szKeycharsmax(szKey), "data_score"
        
formatex(ScoreTcharsmax(ScoreT), "%d"TPlacar)
        
formatex(ScoreCcharsmax(ScoreC), "%d"CPlacar)
        
nfv_set_data(ScoreTeamsszKeyTPlacarCPlacar)
    }
}

public 
TrWins() 
{
    
TPlacar++
    if(
TPlacar == && CPlacar == 0)
    {
        new 
g_load_c1[25], g_load_c2[25]
        
formatex(szKeycharsmax(szKey), "data_score"
        
        if(!
nfv_get_data(ScoreTeamsszKeyCPlacarTPlacar)) return; 
        
parse(g_load_c1charsmax(g_load_c1), g_load_c2charsmax(g_load_c2))
                
        
CPlacar str_to_num(g_load_c1)
        
TPlacar str_to_num(g_load_c2)    
//blablabla
    
}

iceeedr is offline
Send a message via Skype™ to iceeedr
 



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 04:32.


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