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-26-2018 , 17:44   Re: Save score of each team
Reply With Quote #7

Quote:
Originally Posted by Bugsy View Post
If I understand correctly, you have 2 global arrays which each hold player values, one array for each team. You want to save this on map change/shutdown or something and restore the values?

There are many options, I'd personally save the array data to a binary file or use nvault array. This is based on what I know, if there other things going on then SQL may be better.
Well, at the moment I have nothing, the score I need to save is not that of the teamscore itself but rather the one of the HUD that I created that every EVENT TR WIN and EVENT CT Win sets ++ in globals, at a certain point of the game , a "battle" of knives begins where hud gets 0x0 and later ++ with the winning team, it is before that time of the battle that I want to save the score Time ct = 7 time tr = 8 for example, end of the battle I use the global hud score and continue from where I was.
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