Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
update_score

 
Post new topic   Reply to topic Printable version
 View previous topic  bombs are useless ...bad Post :: Post linux server  View next topic  
Author Message
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Thu Apr 26, 2007 9:44 pm    Post subject: update_score Reply to topic Reply with quote

I had answered my own question, everyone can ignore this and move on their own way.

Code: Show/Hide

local int update_score(Player *p, struct PlayerScore *s)
{
   if (p->pkt.killpoints != s->Score ||
       p->pkt.flagpoints != s->FlagScore ||
       p->pkt.wins != s->Kills ||
       p->pkt.losses != s->Deaths ||
       p->pkt.flagscarried != s->Flags)
   {
      s->Score = p->pkt.killpoints;
      s->FlagScore = p->pkt.flagpoints;
      s->Kills = p->pkt.wins;
      s->Deaths = p->pkt.losses;
      s->Flags = p->pkt.flagscarried;
      return 1;
   }
   return 0;
}

_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 983 page(s) served in previous 5 minutes.

phpBB Created this page in 0.595747 seconds : 25 queries executed (78.9%): GZIP compression disabled