Raised This Month: $ Target: $400
 0% 

GunGame AMXX 2.12


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
sebul
New Member
Join Date: Apr 2011
Old 08-29-2011 , 18:43   Re: GunGame AMXX 2.12
Reply With Quote #31

1. The table "menuText" should be increased to 1024, because sometimes cuts off the menu.
2. Sometimes it saves the data on double-sid but the nicknames are other.
I found
Code:
for(i=0;i<playerNum;i++)
    {
        // never found an existing entry, make a new one
        if(!set[i] && (playerWins[i] || playerPoints[i]))
        {
            playerTotalPoints[i] = playerPoints[i];
            fprintf(file,"%s^t%i^t%s^t%i^t%i",playerAuthid[i],playerWins[i],playerName[i],get_systime(),playerTotalPoints[i]);
            fputc(file,'^n');
            
            // so we can reference this for the MOTD
            pointsExtraction[players[i]][0] = playerWins[i];
            pointsExtraction[players[i]][1] = playerPoints[i];
            pointsExtraction[players[i]][2] = playerTotalPoints[i];
            
            // DEBUG
            /*if(playerTotalPoints[i] < 1)
            {
                log_amx("***** ERROR! (3) Negative points for player %i:  %i | Team times: %f ,  %f",players[i],playerTotalPoints[i],teamTimes[players[i]][winningTeam-1],teamTimes[players[i]][losingTeam-1]);
                log_message("***** ERROR! (3) Negative points for player  %i: %i | Team times: %f ,  %f",players[i],playerTotalPoints[i],teamTimes[players[i]][winningTeam-1],teamTimes[players[i]][losingTeam-1]);
            }*/
        }
and replace
Code:
for(i=0;i<playerNum;i++)
    {
        for(new a=0;a<playerNum;a++)
        {
            if(i != a && !set[a] && equal(playerAuthid[i], playerAuthid[a]))
            {
                set[a] = 1;
            }
        }

        // never found an existing entry, make a new one
        if(!set[i] && (playerWins[i] || playerPoints[i]))
        {
            playerTotalPoints[i] = playerPoints[i];
            fprintf(file,"%s^t%i^t%s^t%i^t%i",playerAuthid[i],playerWins[i],playerName[i],get_systime(),playerTotalPoints[i]);
            fputc(file,'^n');
            
            // so we can reference this for the MOTD
            pointsExtraction[players[i]][0] = playerWins[i];
            pointsExtraction[players[i]][1] = playerPoints[i];
            pointsExtraction[players[i]][2] = playerTotalPoints[i];
            
            // DEBUG
            /*if(playerTotalPoints[i] < 1)
            {
                log_amx("***** ERROR! (3) Negative points for player %i:  %i | Team times: %f ,  %f",players[i],playerTotalPoints[i],teamTimes[players[i]][winningTeam-1],teamTimes[players[i]][losingTeam-1]);
                log_message("***** ERROR! (3) Negative points for player  %i: %i | Team times: %f ,  %f",players[i],playerTotalPoints[i],teamTimes[players[i]][winningTeam-1],teamTimes[players[i]][losingTeam-1]);
            }*/
        }
Sory for my english.
sebul 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 09:46.


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