Jump to content
  • 0

Problema /factions


AloNNe

Question

Recommended Posts

  • 0
Acum 38 minute, valivaly96 a spus:

in consola ce erori primesti? poate nu ai crescut anumite limite

[15:56:31] [debug] Run time error 4: "Array index out of bounds"
[15:56:31] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:31] [debug] AMX backtrace:
[15:56:31] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:32] [debug] Run time error 4: "Array index out of bounds"
[15:56:32] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:32] [debug] AMX backtrace:
[15:56:32] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:33] [debug] Run time error 4: "Array index out of bounds"
[15:56:33] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:33] [debug] AMX backtrace:
[15:56:33] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:34] [debug] Run time error 4: "Array index out of bounds"
[15:56:34] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:34] [debug] AMX backtrace:
[15:56:34] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:35] [debug] Run time error 4: "Array index out of bounds"
[15:56:35] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:35] [debug] AMX backtrace:
[15:56:35] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:36] [debug] Run time error 4: "Array index out of bounds"
[15:56:36] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:36] [debug] AMX backtrace:
[15:56:36] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:37] [debug] Run time error 4: "Array index out of bounds"
[15:56:37] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:37] [debug] AMX backtrace:
[15:56:37] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:38] [debug] Run time error 4: "Array index out of bounds"
[15:56:38] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:38] [debug] AMX backtrace:
[15:56:38] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:39] [debug] Run time error 4: "Array index out of bounds"
[15:56:39] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:39] [debug] AMX backtrace:
[15:56:39] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:40] [debug] Run time error 4: "Array index out of bounds"
[15:56:40] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:40] [debug] AMX backtrace:
[15:56:40] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:41] [debug] Run time error 4: "Array index out of bounds"
[15:56:41] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:41] [debug] AMX backtrace:
[15:56:41] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:42] [debug] Run time error 4: "Array index out of bounds"
[15:56:42] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:42] [debug] AMX backtrace:
[15:56:42] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:43] [debug] Run time error 4: "Array index out of bounds"
[15:56:43] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:43] [debug] AMX backtrace:
[15:56:43] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:44] [debug] Run time error 4: "Array index out of bounds"
[15:56:44] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:44] [debug] AMX backtrace:
[15:56:44] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:45] [debug] Run time error 4: "Array index out of bounds"
[15:56:45] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:45] [debug] AMX backtrace:
[15:56:45] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:47] [debug] Run time error 4: "Array index out of bounds"
[15:56:47] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:47] [debug] AMX backtrace:
[15:56:47] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:48] [debug] Run time error 4: "Array index out of bounds"
[15:56:48] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:48] [debug] AMX backtrace:
[15:56:48] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:49] [debug] Run time error 4: "Array index out of bounds"
[15:56:49] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:49] [debug] AMX backtrace:
[15:56:49] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:50] [debug] Run time error 4: "Array index out of bounds"
[15:56:50] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:50] [debug] AMX backtrace:
[15:56:50] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:51] [debug] Run time error 4: "Array index out of bounds"
[15:56:51] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:51] [debug] AMX backtrace:
[15:56:51] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:52] [debug] Run time error 4: "Array index out of bounds"
[15:56:52] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:52] [debug] AMX backtrace:
[15:56:52] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:53] [debug] Run time error 4: "Array index out of bounds"
[15:56:53] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:53] [debug] AMX backtrace:
[15:56:53] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:54] [debug] Run time error 4: "Array index out of bounds"
[15:56:54] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:54] [debug] AMX backtrace:
[15:56:54] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:55] [debug] Run time error 4: "Array index out of bounds"
[15:56:55] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:55] [debug] AMX backtrace:
[15:56:55] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:56] [debug] Run time error 4: "Array index out of bounds"
[15:56:56] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:56] [debug] AMX backtrace:
[15:56:56] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
 

Link to comment
Share on other sites

  • 0
Acum 1 oră, AloNNe a spus:

[15:56:31] [debug] Run time error 4: "Array index out of bounds"
[15:56:31] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:31] [debug] AMX backtrace:
[15:56:31] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:32] [debug] Run time error 4: "Array index out of bounds"
[15:56:32] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:32] [debug] AMX backtrace:
[15:56:32] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:33] [debug] Run time error 4: "Array index out of bounds"
[15:56:33] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:33] [debug] AMX backtrace:
[15:56:33] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:34] [debug] Run time error 4: "Array index out of bounds"
[15:56:34] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:34] [debug] AMX backtrace:
[15:56:34] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:35] [debug] Run time error 4: "Array index out of bounds"
[15:56:35] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:35] [debug] AMX backtrace:
[15:56:35] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:36] [debug] Run time error 4: "Array index out of bounds"
[15:56:36] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:36] [debug] AMX backtrace:
[15:56:36] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:37] [debug] Run time error 4: "Array index out of bounds"
[15:56:37] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:37] [debug] AMX backtrace:
[15:56:37] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:38] [debug] Run time error 4: "Array index out of bounds"
[15:56:38] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:38] [debug] AMX backtrace:
[15:56:38] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:39] [debug] Run time error 4: "Array index out of bounds"
[15:56:39] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:39] [debug] AMX backtrace:
[15:56:39] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:40] [debug] Run time error 4: "Array index out of bounds"
[15:56:40] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:40] [debug] AMX backtrace:
[15:56:40] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:41] [debug] Run time error 4: "Array index out of bounds"
[15:56:41] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:41] [debug] AMX backtrace:
[15:56:41] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:42] [debug] Run time error 4: "Array index out of bounds"
[15:56:42] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:42] [debug] AMX backtrace:
[15:56:42] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:43] [debug] Run time error 4: "Array index out of bounds"
[15:56:43] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:43] [debug] AMX backtrace:
[15:56:43] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:44] [debug] Run time error 4: "Array index out of bounds"
[15:56:44] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:44] [debug] AMX backtrace:
[15:56:44] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:45] [debug] Run time error 4: "Array index out of bounds"
[15:56:45] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:45] [debug] AMX backtrace:
[15:56:45] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:47] [debug] Run time error 4: "Array index out of bounds"
[15:56:47] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:47] [debug] AMX backtrace:
[15:56:47] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:48] [debug] Run time error 4: "Array index out of bounds"
[15:56:48] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:48] [debug] AMX backtrace:
[15:56:48] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:49] [debug] Run time error 4: "Array index out of bounds"
[15:56:49] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:49] [debug] AMX backtrace:
[15:56:49] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:50] [debug] Run time error 4: "Array index out of bounds"
[15:56:50] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:50] [debug] AMX backtrace:
[15:56:50] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:51] [debug] Run time error 4: "Array index out of bounds"
[15:56:51] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:51] [debug] AMX backtrace:
[15:56:51] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:52] [debug] Run time error 4: "Array index out of bounds"
[15:56:52] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:52] [debug] AMX backtrace:
[15:56:52] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:53] [debug] Run time error 4: "Array index out of bounds"
[15:56:53] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:53] [debug] AMX backtrace:
[15:56:53] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:54] [debug] Run time error 4: "Array index out of bounds"
[15:56:54] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:54] [debug] AMX backtrace:
[15:56:54] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:55] [debug] Run time error 4: "Array index out of bounds"
[15:56:55] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:55] [debug] AMX backtrace:
[15:56:55] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
[15:56:56] [debug] Run time error 4: "Array index out of bounds"
[15:56:56] [debug]  Accessing element at index 16 past array upper bound 15
[15:56:56] [debug] AMX backtrace:
[15:56:56] [debug] #0 00256ff0 in public LocalTimer () from wa-rpg.amx
 

In publicul LocalTimer ai un vector de 15 pozitii si tu o accesezi pozitia 16. Vezi ce tine de factiuni si mareste limita

Link to comment
Share on other sites

  • 0
Acum 3 minute, valivaly96 a spus:

pune functia aici 

help te rog, nu stiu ce sa fac..

function LocalTimer() {
    new string[200], query[200];
    // licitatii automate
    new year, month, day;
    getdate(year, month, day);
    new days[180];
    format(days, sizeof(days), GetWeekDay(day, month, year));    
    new hour,minute,second;
    gettime(hour,minute,second);    
    if(strcmp(days,"Monday",true) == 0 && hour == 00 && second == 0) {
        format(query, sizeof(query), "UPDATE `users` SET `HelpedPlayersToday`='0' WHERE `Admin`>='1'");
        mysql_query(SQL ,query);
        
        foreach(Player, i) {
            if(IsPlayerConnected(i) && IsPlayerLogged == 1) {
                if(PlayerInfo[pAdmin] != 0) PlayerInfo[pHelpedPlayersToday] = 0;
            }
        }            

Link to comment
Share on other sites

  • 0
Chiar acum, AloNNe a spus:

help te rog, nu stiu ce sa fac..

function LocalTimer() {
    new string[200], query[200];
    // licitatii automate
    new year, month, day;
    getdate(year, month, day);
    new days[180];
    format(days, sizeof(days), GetWeekDay(day, month, year));    
    new hour,minute,second;
    gettime(hour,minute,second);    
    if(strcmp(days,"Monday",true) == 0 && hour == 00 && second == 0) {
        format(query, sizeof(query), "UPDATE `users` SET `HelpedPlayersToday`='0' WHERE `Admin`>='1'");
        mysql_query(SQL ,query);
        
        foreach(Player, i) {
            if(IsPlayerConnected(i) && IsPlayerLogged == 1) {
                if(PlayerInfo[pAdmin] != 0) PlayerInfo[pHelpedPlayersToday] = 0;
            }
        }            

esti sigur ca asta e toata functia pt ca lipsesc 2 acolade

Link to comment
Share on other sites

  • 0
Chiar acum, valivaly96 a spus:

esti sigur ca asta e toata functia pt ca lipsesc 2 acolade

}

function LocalTimer() {
    new string[200], query[200];
    // licitatii automate
    new year, month, day;
    getdate(year, month, day);
    new days[180];
    format(days, sizeof(days), GetWeekDay(day, month, year));    
    new hour,minute,second;
    gettime(hour,minute,second);    
    if(strcmp(days,"Monday",true) == 0 && hour == 00 && second == 0) {
        format(query, sizeof(query), "UPDATE `users` SET `HelpedPlayersToday`='0' WHERE `Admin`>='1'");
        mysql_query(SQL ,query);
        
        foreach(Player, i) {
            if(IsPlayerConnected(i) && IsPlayerLogged == 1) {
                if(PlayerInfo[pAdmin] != 0) PlayerInfo[pHelpedPlayersToday] = 0;
            }
        }            
    }
    if(strcmp(days,"Saturday",true) == 0 || strcmp(days,"Sunday",true) == 0 || strcmp(days,"Friday",true) == 0) {
        if(ServerSystem[10] == 0) {

Link to comment
Share on other sites

  • 0
Chiar acum, valivaly96 a spus:

1.Nu trebuie sa faci spam ca te ajut

2.Nu esti in stare sa pui toata functia

3.Ai adaugat o mafie cumva?

}

function LocalTimer() {
    new string[200], query[200];
    // licitatii automate
    new year, month, day;
    getdate(year, month, day);
    new days[180];
    format(days, sizeof(days), GetWeekDay(day, month, year));    
    new hour,minute,second;
    gettime(hour,minute,second);    
    if(strcmp(days,"Monday",true) == 0 && hour == 00 && second == 0) {
        format(query, sizeof(query), "UPDATE `users` SET `HelpedPlayersToday`='0' WHERE `Admin`>='1'");
        mysql_query(SQL ,query);
        
        foreach(Player, i) {
            if(IsPlayerConnected(i) && IsPlayerLogged == 1) {
                if(PlayerInfo[pAdmin] != 0) PlayerInfo[pHelpedPlayersToday] = 0;
            }
        }            
    }
    if(strcmp(days,"Saturday",true) == 0 || strcmp(days,"Sunday",true) == 0 || strcmp(days,"Friday",true) == 0) {
        if(ServerSystem[10] == 0) {
            if(hour == 20 && Licitatie == 0 || hour == 21 && Licitatie == 0) {
                if(FreeBusinesses() > 0) {
                    new id = GetBizzID();
                    Licitatie = 1;
                    TipLicitatie = 2;
                    TimpLicitatie = 5*60;
                    TotalBani = 0;
                    foreach(Player, i) {
                        if(IsPlayerConnected(i) && IsPlayerLogged == 1) TotalMoney = 0;
                    }
                    IDLicitatie = id;
                    LastPlayer = -1;

                    foreach(Player, i) {
                        if(IsPlayerConnected(i) && toglicitatie == 0) {
                            SendClientMessage(i, COLOR_YELLOW, "O licitatie tocmai a inceput. Optiunea de a vedea mesajele de la licitatie este dezactivata.");
                            SendClientMessage(i, COLOR_YELLOW, "Daca vrei sa vezi mesajele, foloseste comanda /tog iar daca vrei sa vezi pentru ce se liciteaza, foloseste /info.");
                        }
                    }
                    
                    MesajLicitatie(0x7A45FFFF, "O noua licitatie tocmai a inceput!");
                    switch(TipLicitatie) {
                        case 1: format(string, sizeof(string), "De data aceasta, se liciteaza pentru casa cu ID-ul %d. (/findhouse %d). ", id, id);
                        case 2: format(string, sizeof(string), "De data aceasta, se liciteaza pentru afacerea cu ID-ul %d. (/findbiz %d). ", id, id);
                    }
                    MesajLicitatie(0x7A45FFFF, string);
                    format(string, sizeof(string), "Ai la dispozitie 5 minute pentru a licita.");
                    MesajLicitatie(0x7A45FFFF, string);
                    MesajLicitatie(0x7A45FFFF, "Comenzi disponibile: (/bid - licitezi), (/info - informatii)");        
                }
                else if(FreeHouses() > 0) {
                    new id = GetHouseID();
                    Licitatie = 1;
                    TipLicitatie = 1;
                    TimpLicitatie = 5*60;
                    TotalBani = 0;
                    foreach(Player, i) {
                        if(IsPlayerConnected(i) && IsPlayerLogged == 1) TotalMoney = 0;
                    }
                    IDLicitatie = id;
                    LastPlayer = -1;

                    foreach(Player, i) {
                        if(IsPlayerConnected(i) && toglicitatie == 0) {
                            SendClientMessage(i, COLOR_YELLOW, "O licitatie tocmai a inceput. Optiunea de a vedea mesajele de la licitatie este dezactivata.");
                            SendClientMessage(i, COLOR_YELLOW, "Daca vrei sa vezi mesajele, foloseste comanda /tog iar daca vrei sa vezi pentru ce se liciteaza, foloseste /info.");
                        }
                    }
                    
                    MesajLicitatie(0x7A45FFFF, "O noua licitatie tocmai a inceput!");
                    switch(TipLicitatie) {
                        case 1: format(string, sizeof(string), "De data aceasta, se liciteaza pentru casa cu ID-ul %d. (/findhouse %d). ", id, id);
                        case 2: format(string, sizeof(string), "De data aceasta, se liciteaza pentru afacerea cu ID-ul %d. (/findbiz %d). ", id, id);
                    }
                    MesajLicitatie(0x7A45FFFF, string);
                    format(string, sizeof(string), "Ai la dispozitie 5 minute pentru a licita.");
                    MesajLicitatie(0x7A45FFFF, string);
                    MesajLicitatie(0x7A45FFFF, "Comenzi disponibile: (/bid - licitezi), (/info - informatii)");
                }            
                else if(minute == 0 && second == 0) SendAdminMessage(COLOR_LOGS, "AdmBot: Nu sunt proprietati ce poti fi scoase la licitatie.", 1);
            }
        }    
    }
 

 

 

poftim, si da e mafie

Link to comment
Share on other sites

  • 0
Chiar acum, AloNNe a spus:

}

function LocalTimer() {
    new string[200], query[200];
    // licitatii automate
    new year, month, day;
    getdate(year, month, day);
    new days[180];
    format(days, sizeof(days), GetWeekDay(day, month, year));    
    new hour,minute,second;
    gettime(hour,minute,second);    
    if(strcmp(days,"Monday",true) == 0 && hour == 00 && second == 0) {
        format(query, sizeof(query), "UPDATE `users` SET `HelpedPlayersToday`='0' WHERE `Admin`>='1'");
        mysql_query(SQL ,query);
        
        foreach(Player, i) {
            if(IsPlayerConnected(i) && IsPlayerLogged == 1) {
                if(PlayerInfo[pAdmin] != 0) PlayerInfo[pHelpedPlayersToday] = 0;
            }
        }            
    }
    if(strcmp(days,"Saturday",true) == 0 || strcmp(days,"Sunday",true) == 0 || strcmp(days,"Friday",true) == 0) {
        if(ServerSystem[10] == 0) {
            if(hour == 20 && Licitatie == 0 || hour == 21 && Licitatie == 0) {
                if(FreeBusinesses() > 0) {
                    new id = GetBizzID();
                    Licitatie = 1;
                    TipLicitatie = 2;
                    TimpLicitatie = 5*60;
                    TotalBani = 0;
                    foreach(Player, i) {
                        if(IsPlayerConnected(i) && IsPlayerLogged == 1) TotalMoney = 0;
                    }
                    IDLicitatie = id;
                    LastPlayer = -1;

                    foreach(Player, i) {
                        if(IsPlayerConnected(i) && toglicitatie == 0) {
                            SendClientMessage(i, COLOR_YELLOW, "O licitatie tocmai a inceput. Optiunea de a vedea mesajele de la licitatie este dezactivata.");
                            SendClientMessage(i, COLOR_YELLOW, "Daca vrei sa vezi mesajele, foloseste comanda /tog iar daca vrei sa vezi pentru ce se liciteaza, foloseste /info.");
                        }
                    }
                    
                    MesajLicitatie(0x7A45FFFF, "O noua licitatie tocmai a inceput!");
                    switch(TipLicitatie) {
                        case 1: format(string, sizeof(string), "De data aceasta, se liciteaza pentru casa cu ID-ul %d. (/findhouse %d). ", id, id);
                        case 2: format(string, sizeof(string), "De data aceasta, se liciteaza pentru afacerea cu ID-ul %d. (/findbiz %d). ", id, id);
                    }
                    MesajLicitatie(0x7A45FFFF, string);
                    format(string, sizeof(string), "Ai la dispozitie 5 minute pentru a licita.");
                    MesajLicitatie(0x7A45FFFF, string);
                    MesajLicitatie(0x7A45FFFF, "Comenzi disponibile: (/bid - licitezi), (/info - informatii)");        
                }
                else if(FreeHouses() > 0) {
                    new id = GetHouseID();
                    Licitatie = 1;
                    TipLicitatie = 1;
                    TimpLicitatie = 5*60;
                    TotalBani = 0;
                    foreach(Player, i) {
                        if(IsPlayerConnected(i) && IsPlayerLogged == 1) TotalMoney = 0;
                    }
                    IDLicitatie = id;
                    LastPlayer = -1;

                    foreach(Player, i) {
                        if(IsPlayerConnected(i) && toglicitatie == 0) {
                            SendClientMessage(i, COLOR_YELLOW, "O licitatie tocmai a inceput. Optiunea de a vedea mesajele de la licitatie este dezactivata.");
                            SendClientMessage(i, COLOR_YELLOW, "Daca vrei sa vezi mesajele, foloseste comanda /tog iar daca vrei sa vezi pentru ce se liciteaza, foloseste /info.");
                        }
                    }
                    
                    MesajLicitatie(0x7A45FFFF, "O noua licitatie tocmai a inceput!");
                    switch(TipLicitatie) {
                        case 1: format(string, sizeof(string), "De data aceasta, se liciteaza pentru casa cu ID-ul %d. (/findhouse %d). ", id, id);
                        case 2: format(string, sizeof(string), "De data aceasta, se liciteaza pentru afacerea cu ID-ul %d. (/findbiz %d). ", id, id);
                    }
                    MesajLicitatie(0x7A45FFFF, string);
                    format(string, sizeof(string), "Ai la dispozitie 5 minute pentru a licita.");
                    MesajLicitatie(0x7A45FFFF, string);
                    MesajLicitatie(0x7A45FFFF, "Comenzi disponibile: (/bid - licitezi), (/info - informatii)");
                }            
                else if(minute == 0 && second == 0) SendAdminMessage(COLOR_LOGS, "AdmBot: Nu sunt proprietati ce poti fi scoase la licitatie.", 1);
            }
        }    
    }
 

 

 

poftim, si da e mafie

for(new i = 0; i < 15; i++) {
		if(FactionDeelay[i] >= 1) {
			FactionDeelay[i] --;
			if(FactionDeelay[i] == 0) {
				SendFactionMessage(i, COLOR_MONEY, "[WAR] Acum mafia ta poate ataca un teritoriu!");
			}
		}
	}

In loc de 15 pui 16 in for, for-ul se afla undeva in functia LocalTimer pe care nu reusesti sa o pui pe toata.

P.S: Cauta // War delay, acolo se afla for-ul.Trebuie sa pornesc eu pcul sa ma uit in gm deoarece nu poti pune toata functia. functia incepe dupa function LocalTimer() si se termina la urmatorul return 1;}(asta e valabil in cazul acestei functii)

bafta

Link to comment
Share on other sites

  • 0
Acum 1 minut, valivaly96 a spus:

for(new i = 0; i < 15; i++) {
		if(FactionDeelay[i] >= 1) {
			FactionDeelay[i] --;
			if(FactionDeelay[i] == 0) {
				SendFactionMessage(i, COLOR_MONEY, "[WAR] Acum mafia ta poate ataca un teritoriu!");
			}
		}
	}

In loc de 15 pui 16 in for, for-ul se afla undeva in functia LocalTimer pe care nu reusesti sa o pui pe toata.

P.S: Cauta // War delay, acolo se afla for-ul.Trebuie sa pornesc eu pcul sa ma uit in gm deoarece nu poti pune toata functia. functia incepe dupa function LocalTimer() si se termina la urmatorul return 1;}(asta e valabil in cazul acestei functii)

bafta

mersii, dar la war deelay e pus 17, am adaugat 3 factiuni, 2 merg, 1 nu merge si am incercat sa fac si school instructor in loc de ea, da ciuciu

Link to comment
Share on other sites

  • 0
Spoiler

 

 

Chiar acum, valivaly96 a spus:

daca tot ce ai zis tu e pus pe 17 atunci nu trebuie s primesti erori in console pt aceasta functie.Dar din ce vad eu in consola cva de la war delay nu este modificat.poate ca ai mai mult de 17 factiuni

st ca verific iar..

 

Link to comment
Share on other sites

  • 0

CMD:factions(playerid, params[]) {
    new szDialog[180], szDialog2[1024];
    strcat(szDialog2, "Numele factiunii\tMembrii/Locuri\tAplicatii\n");
    for(new i = 1; i < 17; i++) {
        format(szDialog, sizeof(szDialog), "%d. %s\t%s/7\t%s\n", i, FactionName(i), GetFactionMembers(i), GetFactionStatus(i));
        strcat(szDialog2, szDialog);
    }
    ShowPlayerDialog(playerid, DIALOG_FACTIONS, DIALOG_STYLE_TABLIST_HEADERS, "Factiuni:", szDialog2, "Ok", "Close");
    return 1;
}

stock GetFactionStatus(fid) {
    new szStatus[180];
    if(DynamicFactions[fid][fApp] == 1) format(szStatus, 256, "{FF0000}Inchise{FFFFFF}");
    else format(szStatus, 256, "{2FC914}Deschise{FFFFFF}");
    return szStatus;
}

stock GetFactionStatus2(fid) {
    new szStatus[180];
    if(DynamicFactions[fid][fApp] == 0) format(szStatus, 256, "Inchise");
    else format(szStatus, 256, "Deschise");
    return szStatus;
}
 

daca las 16, merge dar trb 17 sa apara si noua mafie.. si nu mergee

Link to comment
Share on other sites

  • 0
Chiar acum, AloNNe a spus:

CMD:factions(playerid, params[]) {
    new szDialog[180], szDialog2[1024];
    strcat(szDialog2, "Numele factiunii\tMembrii/Locuri\tAplicatii\n");
    for(new i = 1; i < 17; i++) {
        format(szDialog, sizeof(szDialog), "%d. %s\t%s/7\t%s\n", i, FactionName(i), GetFactionMembers(i), GetFactionStatus(i));
        strcat(szDialog2, szDialog);
    }
    ShowPlayerDialog(playerid, DIALOG_FACTIONS, DIALOG_STYLE_TABLIST_HEADERS, "Factiuni:", szDialog2, "Ok", "Close");
    return 1;
}

stock GetFactionStatus(fid) {
    new szStatus[180];
    if(DynamicFactions[fid][fApp] == 1) format(szStatus, 256, "{FF0000}Inchise{FFFFFF}");
    else format(szStatus, 256, "{2FC914}Deschise{FFFFFF}");
    return szStatus;
}

stock GetFactionStatus2(fid) {
    new szStatus[180];
    if(DynamicFactions[fid][fApp] == 0) format(szStatus, 256, "Inchise");
    else format(szStatus, 256, "Deschise");
    return szStatus;
}
 

daca las 16, merge dar trb 17 sa apara si noua mafie.. si nu mergee

Cate factiuni ai pe server in acest moment?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.