Callback problem
#1

Hello. I have a big problem of payday Systeme simply does not want to go and I put the older versions of gamemode did not want me and all I did command / figure payday when he says, "SERVER: Unknown command" if there were no such treburii look like this:
PHP код:
SendClientMessage return (playeridCOLOR_SERVER"Error: {FFFFFF} This command does not exist."); 
PHP код:
public PayDay()
{
    new
        
string[512],
        
account,
        
interest,
        
rent;
    new 
hour,minute,secondyearmonthday;
    
gettime(hour,minute,second);
    
getdate(yearmonthday);
    if(
minute == 00 && second == 00 || CPayDay == 1)
    {
        for(new 
0MAX_PLAYERSi++)
        {
            if(
IsPlayerConnected(i) && gPlayerLogged[i] == 1)
            {
                new 
playername2[MAX_PLAYER_NAME];
                
GetPlayerName(iplayername2sizeof(playername2));
                new 
tmpintrate;
                new 
key PlayerInfo[i][pPhouseKey];
                if (
key != 255 && strcmp(playername2HouseInfo[key][hOwner], true) == 0) {
                    if(
PlayerInfo[i][pPremium] > 0) { tmpintrate intrate+9; }
                    else { 
tmpintrate intrate+6; }
                }
                else {
                    if(
PlayerInfo[i][pPremium] > 0) { tmpintrate 6; }
                    else { 
tmpintrate 4; }
                }
                
CPayDay 0;
                
Tax += TaxValue;
                
PlayerInfo[i][pAccount] -= TaxValue;
                new 
checks PlayerInfo[i][pLevel]*35000;
                
ConsumingMoney[i] = 1;
                
GivePlayerCash(ichecks);
                 
PlayerInfo[i][pCash] += checks;
                if(
PlayerInfo[i][pGiftPoints] < 5) { PlayerInfo[i][pGiftPoints] ++; }
                
interest = (PlayerInfo[i][pAccount]/200)*(tmpintrate);
                
PlayerInfo[i][pExp]++;
                
account PlayerInfo[i][pAccount];
                
PlayerInfo[i][pAccount] = account+interest;
                
PlayerInfo[i][pRob] += 1;
                
GameTextForPlayer(i"~g~payday"50001);
                
PlayerInfo[i][pPayCheck] = 0;
                
PlayerInfo[i][pBlackList] --;
                
PlayerInfo[i][pHoursPlayed] ++;
                if(
PlayerInfo[i][pBlackList] <= 0) { PlayerInfo[i][pBlackList] = 0; }
                
SendClientMessage(iCOLOR_TEAL"------------------------ {09FF00}PayDay{49809E} ------------------------");
                
format(string256"• Salariu: {F0021A}$%s"FormatNumber(checks));
                
SCM(iCOLOR_YELLOWstring);
                
format(string256"• Taxe: {F0021A}$%s"FormatNumber(TaxValue));
                
SCM(iCOLOR_YELLOWstring);
                
format(string256"• Dobanda: {F0021A}$%s "FormatNumber(tmpintrate));
                
SCM(iCOLOR_YELLOWstring);
                   
format(string256"• Dobanda acumulata: {F0021A}$%s "FormatNumber(interest));
                
SCM(iCOLOR_YELLOWstring);
                
format(string256"• Balanta noua: {F0021A}$%s "FormatNumber(PlayerInfo[i][pAccount]));
                
SCM(iCOLOR_YELLOWstring);
                if(
key != 255) {
                    
rent HouseInfo[key][hRent];
                    if(
strcmp(playername2HouseInfo[key][hOwner], true) == 0) {
                        
rent 0;
                    }
                    else if(
rent GetPlayerMoney(i)) {
                        
PlayerInfo[i][pPhouseKey] = 255;
                        
SendClientMessage(iCOLOR_WHITE"* Ai fost evacuat din casa!");
                        
rent 0;
                    }
                    
HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
                }
                new 
bonusmoney;
                if(
PlayerInfo[i][pPremium] >= 1) {
                    
bonusmoney PlayerInfo[i][pLevel] * 50000;
                    
format(string256"• Bonus Premium: {F0021A}$%s"FormatNumber(bonusmoney));
                    
SCM(iCOLOR_YELLOWstring);
                    
GivePlayerCash(ibonusmoney);
                    
PlayerInfo[i][pCash] += bonusmoney;
                }
                if(
PlayerInfo[i][pMember] == || PlayerInfo[i][pLeader] == || PlayerInfo[i][pMember] == || PlayerInfo[i][pLeader] == 2) {
                    if(
PlayerInfo[i][pFreePoints] == 10) { SCM(i, -1"Nu ai primit Free Point deoarece ai numarul maxim de Free Points (10)."); PlayerInfo[i][pFreePoints] = 10; }
                    
PlayerInfo[i][pFreePoints] += 1;
                }
                if(
PlayerInfo[i][pGiftPoints] == 5) { SCM(iCOLOR_YELLOW"* Acum poti folosi din nou comanda [/getgift]!"); }
                
SendClientMessage(iCOLOR_TEAL"--------------------------------------------------------------");
            }
        }
    }
    return 
1;
}
        if(
strcmp(cmd"/payday"true) == 0)
        {
            if(
PlayerInfo[playerid][pAdmin] >= 6)
            {
                
CPayDay 1;
                
PayDay();
            }
            else
            {
                
SCM(playeridCOLOR_LGREEN"Nu esti autorizat sa folosesti aceasta comanda!");
                return 
1;
            }
            return 
1;
        } 
Reply
#2

Find somebody to translate to you "****** translate isn't an option", Cause I understood nothing
Reply
#3

Now only one player receive your payday, just with a few commands. What could be the problem?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)