Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Question

Posted

Am adaugat 2 factiuni noi pe burned, si acele merg, acum m-am gandit sa am 3 bagate si am baga-to si cand dau /factions zice ca nu exista comanda, va rog ajutor.. 

Recommended Posts

  • 0
Posted
Acum 2 ore, AloNNe a spus:

Am adaugat 2 factiuni noi pe burned, si acele merg, acum m-am gandit sa am 3 bagate si am baga-to si cand dau /factions zice ca nu exista comanda, va rog ajutor.. 

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

  • 0
Posted (edited)
Acum 39 minute, valivaly96 a spus:

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

Aia cred si eu, dar nici alte factiune pe care le adaug nu merg... gen am adaugat 2 si a mers, a 3-a nu merge

 

Edited by AloNNe
  • 0
Posted
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
 

  • 0
Posted
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

  • 0
Posted
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;
            }
        }            

  • 0
Posted
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

  • 0
Posted
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) {

  • 0
Posted
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

  • 0
Posted
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

  • 0
Posted
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

  • 0
Posted
Acum 2 minute, AloNNe a spus:

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

FactionDeelay[16], marestel la 17

  • 0
Posted
Acum 5 minute, AloNNe a spus:

E pus pe 17 mane

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

  • 0
Posted
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..

 

  • 0
Posted
Acum 2 minute, 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

tot nu mere /factions....

  • 0
Posted

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

  • 0
Posted
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?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.