[HELP] run time error 6: invalid intruction
#1

Hello I was getting run time error 6 invalid instruction message from the public LoadAccount(playerid) and I was check for missing brackets but it doens't missing any of {} brackets? Thanks
Reply
#2

Show your code.
Reply
#3

my code is on croatian language but here anyway public is a bit long maybe that's the problem, here

edit: sometimes I get that message and I was enter again to the server know and message is not showing

pawn Код:
forward LoadAccount(playerid);
public LoadAccount(playerid)
{
    PlayerInfo[playerid][Level] = cache_get_row_int(0,4);
    PlayerInfo[playerid][Novac] = cache_get_row_int(0,5);
    PlayerInfo[playerid][Registriran] = cache_get_row_int(0,6);
    PlayerInfo[playerid][SpawnPromijena] = cache_get_row_int(0,7);
    PlayerInfo[playerid][Spol] = cache_get_row_int(0,8);
    PlayerInfo[playerid][Godine] = cache_get_row_int(0,9);
    PlayerInfo[playerid][Porijeklo] = cache_get_row_int(0,10);
    PlayerInfo[playerid][Skin] = cache_get_row_int(0,11);
    PlayerInfo[playerid][Tutorial] = cache_get_row_int(0,12);
    PlayerInfo[playerid][Clan] = cache_get_row_int(0,13);
    PlayerInfo[playerid][Lider] = cache_get_row_int(0,14);
    PlayerInfo[playerid][Admin] = cache_get_row_int(0,15);
    PlayerInfo[playerid][GameSage] = cache_get_row_int(0,16);
    PlayerInfo[playerid][Utisan] = cache_get_row_int(0,17);
    PlayerInfo[playerid][MjestoAdmina] = cache_get_row_int(0,18);
    PlayerInfo[playerid][Rank] = cache_get_row_int(0,19);
    PlayerInfo[playerid][Banka] = cache_get_row_int(0,20);
    PlayerInfo[playerid][MjestoGS] = cache_get_row_int(0,21);
    PlayerInfo[playerid][Kuca] = cache_get_row_int(0,22);
    PlayerInfo[playerid][Materijali] = cache_get_row_int(0,23);
    Dzep[playerid][xDroga] = cache_get_row_int(0,24);
    PlayerInfo[playerid][hHealH] = cache_get_row_int(0,25);
    PlayerInfo[playerid][hArmourH] = cache_get_row_int(0,26);
    PlayerInfo[playerid][Banovan] = cache_get_row_int(0,27);
    PlayerInfo[playerid][Stan] = cache_get_row_int(0,28);
    PlayerInfo[playerid][MjestoUOrg] = cache_get_row_int(0,29);
    PlayerInfo[playerid][Donator] = cache_get_row_int(0,30);
    PlayerInfo[playerid][SatiIgranja] = cache_get_row_int(0,31);
    Stvari[playerid][zDroga] = cache_get_row_int(0,32);
    PlayerInfo[playerid][MozeDaGasiMobitel] = cache_get_row_int(0,33);
    PlayerInfo[playerid][Respekti] = cache_get_row_int(0,34);
    PlayerInfo[playerid][RacunMobitel] = cache_get_row_int(0,35);
    PlayerInfo[playerid][DozvolaOruzje] = cache_get_row_int(0,36);
    PlayerInfo[playerid][DozvolaLetenje] = cache_get_row_int(0,37);
    PlayerInfo[playerid][Kredit] = cache_get_row_int(0,38);
    PlayerInfo[playerid][Upozoren] = cache_get_row_int(0,39);
    PlayerInfo[playerid][BrojMobitela] = cache_get_row_int(0,40);
    PlayerInfo[playerid][Zatvoren] = cache_get_row_int(0,41);
    PlayerInfo[playerid][ZatvorenVrijeme] = cache_get_row_int(0,42);
    PlayerInfo[playerid][DozvolaPlovidba] = cache_get_row_int(0,43);
    PlayerInfo[playerid][TimUgovor] = cache_get_row_int(0,44);
    PlayerInfo[playerid][KaznaUgovor] = cache_get_row_int(0,45);
    PlayerInfo[playerid][Ubojstava] = cache_get_row_int(0,46);
    PlayerInfo[playerid][Smrti] = cache_get_row_int(0,47);
    PlayerInfo[playerid][ZlocinaPocinio] = cache_get_row_int(0,48);
    PlayerInfo[playerid][PutaUhicen] = cache_get_row_int(0,49);
    PlayerInfo[playerid][WantedSmrti] = cache_get_row_int(0,50);
    PlayerInfo[playerid][TrazenLevel] = cache_get_row_int(0,51);
    PlayerInfo[playerid][Vikendica] = cache_get_row_int(0,52);
    PlayerInfo[playerid][Hotel] = cache_get_row_int(0,53);
    PlayerInfo[playerid][RentaHotel] = cache_get_row_int(0,54);
    PlayerInfo[playerid][VozackaDozvola] = cache_get_row_int(0,55);
    PlayerInfo[playerid][Firma] = cache_get_row_int(0,56);
    PlayerInfo[playerid][PayDayPoeni] = cache_get_row_int(0,57);
    PlayerInfo[playerid][IznosRate] = cache_get_row_int(0,58);
    PlayerInfo[playerid][PreostaloZaOtplatu] = cache_get_row_int(0,59);
    PlayerInfo[playerid][Posao] = cache_get_row_int(0,60);
    PlayerInfo[playerid][PosaoUgovor] = cache_get_row_int(0,61);
    PlayerInfo[playerid][RentaKucu] = cache_get_row_int(0,62);
    PlayerInfo[playerid][SFirma] = cache_get_row_int(0,63);
    PlayerInfo[playerid][Biciklo] = cache_get_row_int(0,64);
    PlayerInfo[playerid][BicikloKreirano] = cache_get_row_int(0,65);
    PlayerInfo[playerid][BicikloZakljucano] = cache_get_row_int(0,66);
    PlayerInfo[playerid][Letjelica] = cache_get_row_int(0,67);
    PlayerInfo[playerid][LetjelicaKreirana] = cache_get_row_int(0,68);
    PlayerInfo[playerid][LetjelicaZakljucana] = cache_get_row_int(0,69);
    PlayerInfo[playerid][Plovilo] = cache_get_row_int(0,70);
    PlayerInfo[playerid][PloviloKreirano] = cache_get_row_int(0,71);
    PlayerInfo[playerid][PloviloZakljucano] = cache_get_row_int(0,72);
    PlayerInfo[playerid][Imenik] = cache_get_row_int(0,73);
    PlayerInfo[playerid][Motor] = cache_get_row_int(0,74);
    PlayerInfo[playerid][MotorKreiran] = cache_get_row_int(0,75);
    PlayerInfo[playerid][MotorZakljucan] = cache_get_row_int(0,76);
    PlayerInfo[playerid][Kaciga] = cache_get_row_int(0,77);
    PlayerInfo[playerid][Vozilo] = cache_get_row_int(0,78);
    PlayerInfo[playerid][VoziloKreirano] = cache_get_row_int(0,79);
    PlayerInfo[playerid][VoziloZakljucano] = cache_get_row_int(0,80);
    PlayerInfo[playerid][Zavezan] = cache_get_row_int(0,81);
    PlayerInfo[playerid][FReket] = cache_get_row_int(0,82);
    PlayerInfo[playerid][SReket] = cache_get_row_int(0,83);
    PlayerInfo[playerid][PayDayova] = cache_get_row_int(0,84);
    PlayerInfo[playerid][AdminGSAktivnost] = cache_get_row_int(0,86);
    PlayerInfo[playerid][OffBanovan] = cache_get_row_int(0,87);
    PlayerInfo[playerid][OffBanRazlog] = cache_get_row(0,88,PlayerInfo[playerid][OffBanRazlog],128);
    PlayerInfo[playerid][ABanovan] = cache_get_row_int(0,89);
    PlayerInfo[playerid][ABanRazlog] = cache_get_row(0,90,PlayerInfo[playerid][ABanRazlog],128);
    PlayerInfo[playerid][BanNick] = cache_get_row_int(0,91);
    PlayerInfo[playerid][Hotdog] = cache_get_row_int(0,92);
    Stvari[playerid][zPizza] = cache_get_row_int(0,93);
    Stvari[playerid][zSjemena] = cache_get_row_int(0,94);
    Stvari[playerid][zKoka] = cache_get_row_int(0,95);
    Stvari[playerid][zCigare] = cache_get_row_int(0,96);
    Dzep[playerid][xCigare] = cache_get_row_int(0,97);
    Dzep[playerid][xUpaljac] = cache_get_row_int(0,98);
    Dzep[playerid][xNaocale] = cache_get_row_int(0,99);
    Stvari[playerid][zUze] = cache_get_row_int(0,100);
    Dzep[playerid][xUze] = cache_get_row_int(0,101);
    PlayerInfo[playerid][Frizura] = cache_get_row_int(0,102);
    PlayerInfo[playerid][BorbeniStil] = cache_get_row_int(0,103);
    PlayerInfo[playerid][MehanicarOdvoz] = cache_get_row_int(0,104);
    PlayerInfo[playerid][DetektivVrijeme] = cache_get_row_int(0,105);
    PlayerInfo[playerid][DzepkarosVrijeme] = cache_get_row_int(0,106);
    PlayerInfo[playerid][KradljivacVrijeme] = cache_get_row_int(0,107);
    PlayerInfo[playerid][RadarKazna] = cache_get_row_int(0,108);
    PlayerInfo[playerid][MehanicarSkill] = cache_get_row_int(0,109);
    PlayerInfo[playerid][DetektivSkill] = cache_get_row_int(0,110);
    PlayerInfo[playerid][OdvjetnikSkill] = cache_get_row_int(0,111);
    PlayerInfo[playerid][NewsSkill] = cache_get_row_int(0,112);
    PlayerInfo[playerid][SexSkill] = cache_get_row_int(0,113);
    SetPlayerScore(playerid,PlayerInfo[playerid][Level]);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SetPlayerFightingStyle(playerid,PlayerInfo[playerid][BorbeniStil]);
    new skin = GetPlayerSkin(playerid);
    SetPlayerAttachedObject(playerid,GetSlot(playerid),PlayerInfo[playerid][Frizura],2,SkinKosaOffSet[skin][0],SkinKosaOffSet[skin][1],SkinKosaOffSet[skin][2],SkinKosaOffSet[skin][3],SkinKosaOffSet[skin][4],SkinKosaOffSet[skin][5],SkinKosaOffSet[skin][8],SkinKosaOffSet[skin][8],SkinKosaOffSet[skin][8]);
    SetPlayerHealth(playerid,99.0);
    GivePlayerMoney(playerid,PlayerInfo[playerid][Novac]);
    new spawnstring[256],string2[256],mjesec,dan,mtext[64],godina,spawnime[MAX_PLAYER_NAME],ime[MAX_PLAYER_NAME];
    RPIme(playerid,spawnime);
    RPIme(playerid,ime);
    getdate(godina,mjesec,dan);
    if(mjesec == 1) { mtext = "Siječanj.2013"; }
    else if(mjesec == 2) { mtext = "Veljača.2013"; }
    else if(mjesec == 3) { mtext = "Ozujak.2013"; }
    else if(mjesec == 4) { mtext = "Travanj.2013"; }
    else if(mjesec == 5) { mtext = "Svibanj.2013"; }
    else if(mjesec == 6) { mtext = "Lipanj.2013"; }
    else if(mjesec == 7) { mtext = "Srpanj.2013"; }
    else if(mjesec == 8) { mtext = "Kolovoz.2013"; }
    else if(mjesec == 9) { mtext = "Rujan.2013"; }
    else if(mjesec == 10) { mtext = "Listopad.2013"; }
    else if(mjesec == 11) { mtext = "Studeni.2013"; }
    else if(mjesec == 12) { mtext = "Prosinac.2013"; }
    new sati,minuta,sekundi,vime[MAX_PLAYER_NAME],mime[MAX_PLAYER_NAME],lime[MAX_PLAYER_NAME],pime[MAX_PLAYER_NAME],bime[MAX_PLAYER_NAME];
    RPIme(playerid,vime);
    RPIme(playerid,mime);
    RPIme(playerid,lime);
    RPIme(playerid,pime);
    RPIme(playerid,bime);
    gettime(sati,minuta,sekundi);
    FixHour(sati);
    sati = shifthour;
    EntID[playerid] = -1;
    IgracLogiran[playerid] = 1;
    new hIme[MAX_PLAYER_NAME];
    RPIme(playerid,hIme);
    new Izbacen = 0;
    if(PlayerInfo[playerid][Clan] > 0 && PlayerInfo[playerid][Lider] == 0)
    {
        if(PlayerInfo[playerid][Clan] == 1 && strcmp(PDInfo[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Clan] == 2 && strcmp(FBIInfo[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Clan] == 3 && strcmp(SWATInfo[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Clan] == 4 && strcmp(MDInfo[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Clan] == 5 && strcmp(MS13Info[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Clan] == 6 && strcmp(TSCInfo[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Clan] == 8 && strcmp(GSFInfo[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Clan] == 9 && strcmp(CNNInfo[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Clan] == 10 && strcmp(TAXIInfo[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Clan] == 11 && strcmp(HInfo[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Clan] == 12 && strcmp(YInfo[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Clan] == 13 && strcmp(URInfo[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Clan] == 14 && strcmp(RMInfo[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Clan] == 15 && strcmp(LCNInfo[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Clan] == 16 && strcmp(LSBInfo[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Clan] == 17 && strcmp(LSVInfo[PlayerInfo[playerid][MjestoUOrg]][Mjesto],hIme,false)) Izbacen = 1;
        if(PlayerInfo[playerid][MjestoUOrg] < 1 || PlayerInfo[playerid][MjestoUOrg] > 20) Izbacen = 1;
    }
    if(PlayerInfo[playerid][Lider] > 0)
    {
        if(PlayerInfo[playerid][Lider] == 1 && strcmp(PDInfo[1][Lider],hIme,false) && strcmp(PDInfo[2][Lider],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Lider] == 2 && strcmp(FBIInfo[1][Lider],hIme,false) && strcmp(FBIInfo[2][Lider],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Lider] == 3 && strcmp(SWATInfo[1][Lider],hIme,false) && strcmp(SWATInfo[2][Lider],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Lider] == 4 && strcmp(MDInfo[1][Lider],hIme,false) && strcmp(MDInfo[2][Lider],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Lider] == 5 && strcmp(MS13Info[1][Lider],hIme,false) && strcmp(MS13Info[2][Lider],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Lider] == 6 && strcmp(TSCInfo[1][Lider],hIme,false) && strcmp(TSCInfo[2][Lider],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Lider] == 8 && strcmp(GSFInfo[1][Lider],hIme,false) && strcmp(GSFInfo[2][Lider],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Lider] == 9 && strcmp(CNNInfo[1][Lider],hIme,false) && strcmp(CNNInfo[2][Lider],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Lider] == 10 && strcmp(TAXIInfo[1][Lider],hIme,false) && strcmp(TAXIInfo[2][Lider],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Lider] == 11 && strcmp(HInfo[1][Lider],hIme,false) && strcmp(HInfo[2][Lider],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Lider] == 12 && strcmp(YInfo[1][Lider],hIme,false) && strcmp(YInfo[2][Lider],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Lider] == 13 && strcmp(URInfo[1][Lider],hIme,false) && strcmp(URInfo[2][Lider],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Lider] == 14 && strcmp(RMInfo[1][Lider],hIme,false) && strcmp(RMInfo[2][Lider],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Lider] == 15 && strcmp(LCNInfo[1][Lider],hIme,false) && strcmp(LCNInfo[2][Lider],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Lider] == 16 && strcmp(LSBInfo[1][Lider],hIme,false) && strcmp(LSBInfo[2][Lider],hIme,false)) Izbacen = 1;
        else if(PlayerInfo[playerid][Lider] == 17 && strcmp(LSVInfo[1][Lider],hIme,false) && strcmp(LSVInfo[2][Lider],hIme,false)) Izbacen = 1;
        if(Izbacen == 0)
        {
            if(PlayerInfo[playerid][Lider] == 1) PlayerInfo[playerid][Skin] = 283;
            else if(PlayerInfo[playerid][Lider] == 2) PlayerInfo[playerid][Skin] = 165;
            else if(PlayerInfo[playerid][Lider] == 3) PlayerInfo[playerid][Skin] = 166;
            else if(PlayerInfo[playerid][Lider] == 4) PlayerInfo[playerid][Skin] = 57;
            else if(PlayerInfo[playerid][Lider] == 5) PlayerInfo[playerid][Skin] = 186;
            else if(PlayerInfo[playerid][Lider] == 8) PlayerInfo[playerid][Skin] = 271;
            else if(PlayerInfo[playerid][Lider] == 9) PlayerInfo[playerid][Skin] = 227;
            else if(PlayerInfo[playerid][Lider] == 10) PlayerInfo[playerid][Skin] = 61;
            else if(PlayerInfo[playerid][Lider] == 11) PlayerInfo[playerid][Skin] = 186;
            else if(PlayerInfo[playerid][Lider] == 12) PlayerInfo[playerid][Skin] = 120;
            else if(PlayerInfo[playerid][Lider] == 13) PlayerInfo[playerid][Skin] = 217;
            else if(PlayerInfo[playerid][Lider] == 14) PlayerInfo[playerid][Skin] = 113;
            else if(PlayerInfo[playerid][Lider] == 15) PlayerInfo[playerid][Skin] = 113;
            else if(PlayerInfo[playerid][Lider] == 16) PlayerInfo[playerid][Skin] = 104;
            else if(PlayerInfo[playerid][Lider] == 17) PlayerInfo[playerid][Skin] = 186;
        }
    }
    new nijeviseadmin = 0;
    if(PlayerInfo[playerid][Admin] > 0 && strcmp(AdminInfo[PlayerInfo[playerid][MjestoAdmina]][Mjesto],hIme,false)) nijeviseadmin = 1;
    new nijevisegs = 0;
    if(PlayerInfo[playerid][GameSage] > 0 && strcmp(GSInfo[PlayerInfo[playerid][MjestoGS]][Mjesto],hIme,false)) nijevisegs = 1;
    if(PlayerInfo[playerid][Admin] > 0)
    {
        PrviAdmin[playerid] = 0;
        admini++;
        if(admini == 1)
        {
            PrviAdmin[playerid] = 1;
        }
    }
    new nxtlevel = PlayerInfo[playerid][Level]+ 1;
    new expamount = nxtlevel*levelexp;
    new satiigranja = PlayerInfo[playerid][SatiIgranja];
    new wlcMsg[128];
    new randx = random(sizeof(IzrekaDana));
    format(wlcMsg,sizeof(wlcMsg),"*Welcom %s again to server!",spawnime);
    SendClientMessage(playerid,SVIJETLOPLAVA,wlcMsg);
    format(string2,sizeof(string2),"*Your life: Level [%d] | Respects [%d/%d] | Hours of playing[%d]",PlayerInfo[playerid][Level],PlayerInfo[playerid][Respekti],expamount,satiigranja);
    SendClientMessage(playerid,COLOR_BIJELA,string2);
    SCMF(playerid,MojaBoja,"*Izreka Dana: %s",IzrekaDana[randx]);
    format(string2,sizeof(string2),"*Date: %d.%s | Time: %d:%d h",dan,mtext,sati,minuta);
    SendClientMessage(playerid,COLOR_ZUTA,string2);
    if(Izbacen == 1)
    {
        PlayerInfo[playerid][Clan] = 0;
        PlayerInfo[playerid][MjestoUOrg] = 0;
        PlayerInfo[playerid][Rank] = 0;
        PlayerInfo[playerid][Lider] = 0;
        PlayerInfo[playerid][Skin] = 23;
        SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
        PlayerInfo[playerid][SpawnPromijena] = 1;
        SCM(playerid,0xDB023EFF,"*Izbaceni ste iz svoje organizacije/bande/mafije!");
        new query[128];
        mysql_format(mysql,query,sizeof(query),"UPDATE `users` SET `Clan` = '0',`Lider` = '0',`Rank` = '0',`MjestoUOrg` = '0',`Skin` = '%d',`SpawnPromijena` = '%d' WHERE `ID` = '%d'",PlayerInfo[playerid][Skin],PlayerInfo[playerid][SpawnPromijena],PlayerInfo[playerid][ID]);
        mysql_tquery(mysql,query,"","");
    }
    if(nijeviseadmin == 1)
    {
        new aIme[MAX_PLAYER_NAME];
        GetPlayerName(playerid,aIme,24);
        PlayerInfo[playerid][Admin] = 0;
        PlayerInfo[playerid][MjestoAdmina] = 0;
        SCMF(playerid,COLOR_ZUTA,"%s,smijenjeni ste sa mjesta admina!",aIme);
        SCMF(playerid,COLOR_ZUTA,"%s,Vas level admina-a je promijenjen na: %d!",aIme,PlayerInfo[playerid][Admin]);
        new query[128];
        mysql_format(mysql,query,sizeof(query),"UPDATE `users` SET `Admin` = '0',`MjestoAdmina` = '0' WHERE `ID` = '%d'",PlayerInfo[playerid][ID]);
        mysql_tquery(mysql,query,"","");
    }
    if(nijevisegs == 1)
    {
        new gIme[MAX_PLAYER_NAME];
        GetPlayerName(playerid,gIme,24);
        PlayerInfo[playerid][GameSage] = 0;
        PlayerInfo[playerid][MjestoGS] = 0;
        SCMF(playerid,COLOR_ZUTA,"%s,smijenjeni ste sa mjesta gamesagesa!",gIme);
        SCMF(playerid,COLOR_ZUTA,"%s,Vas level gamesagesa-a je promijenjen na: %d!",gIme,PlayerInfo[playerid][GameSage]);
        new query[128];
        mysql_format(mysql,query,sizeof(query),"UPDATE `users` SET `GameSage` = '0',`MjestoGS` = '0' WHERE `ID` = '%d'",PlayerInfo[playerid][ID]);
        mysql_tquery(mysql,query,"","");
    }
    if(PlayerInfo[playerid][Donator] > 0) SCMF(playerid,SVIJETLOPLAVA,"*Vi imate jos %d bodova.",PlayerInfo[playerid][Donator]);
    if(PlayerInfo[playerid][Admin] > 0)
    {
        new string[128];
        format(string,sizeof(string),"|G-Unit|: Logiran si kao level %d Admina.",PlayerInfo[playerid][Admin]);
        SCM(playerid,0xDB023EFF,string);
        if(PrviAdmin[playerid] == 1)
        {
            SCM(playerid,COLOR_LIGHTRED,"| G-Protect | Aktiviram tihi mod...");
            GProtect[0][gp_NacinRada] = 1;
            new query[128];
            mysql_format(mysql,query,sizeof(query),"UPDATE `gprotect` SET `NacinRada` = '1'");
            mysql_tquery(mysql,query,"","");
        }
        format(string2,sizeof(string2),"|GU_Admin||%d| %s, usao na server",PlayerInfo[playerid][Admin],spawnime);
        PorukaAdminima(bojalv,string2,1);
        PorukaGameSagesima(bojalv,string2,1);
    }
    if(PlayerInfo[playerid][GameSage] > 0)
    {
        format(string2,sizeof(string2),"|G-Unit GameSage||%d| %s, usao na server",PlayerInfo[playerid][GameSage],spawnime);
        PorukaAdminima(COLOR_GSBOJA,string2,1);
        PorukaGameSagesima(COLOR_GSBOJA,string2,1);
        new string[128];
        format(string,sizeof(string),"|G-Unit|: Logiran si kao level %d GameSagea.",PlayerInfo[playerid][GameSage]);
        SCM(playerid,ZELENA,string);
    }
    format(spawnstring,sizeof(spawnstring),"~n~~n~~n~~n~~r~DOBRODOSAO~n~~w~%s",spawnime);
    GameTextForPlayer(playerid,spawnstring,4000,5);
    if(PlayerInfo[playerid][Vozilo] != -1)
    {
        new i = PlayerInfo[playerid][Vozilo];
        if(strcmp(VInfo[i][vVlasnik],vime,true))
        {
            SCM(playerid,ORANGE,"[Greska] - Vozilo koje se nalazi u vasem racunu nije vise u vasem vlasnistvu!");
        }
        else
        {
            DestroyVehicle(VInfo[i][vownedvehicle]);
            VInfo[i][vownedvehicle] = CreateVehicle_H(VInfo[i][vModel],VInfo[i][vPozX],VInfo[i][vPozY],VInfo[i][vPozZ],VInfo[i][vPozA],VInfo[i][vBoja1],VInfo[i][vBoja2],-1);
            SetVehicleToRespawn(VInfo[i][vownedvehicle]);
            IgracevoVozilo[playerid] = i;
        }
    }
    if(PlayerInfo[playerid][Motor] != -1)
    {
        new i = PlayerInfo[playerid][Motor];
        if(strcmp(MInfo[i][mVlasnik],mime,true))
        {
            SCM(playerid,ORANGE,"[Greska] - Motor koji se nalazi u vasem racunu nije vise u vasem vlasnistvu!");
        }
        else
        {
            DestroyVehicle(MInfo[i][mownedvehicle]);
            MInfo[i][mownedvehicle] = CreateVehicle_H(MInfo[i][mModel],MInfo[i][mPozX],MInfo[i][mPozY],MInfo[i][mPozZ],MInfo[i][mPozA],MInfo[i][mBoja1],MInfo[i][mBoja2],1000);
            IgracevMotor[playerid] = i;
        }
    }
    if(PlayerInfo[playerid][Letjelica] != -1)
    {
        new i = PlayerInfo[playerid][Letjelica];
        if(strcmp(LInfo[i][lhVlasnik],lime,true))
        {
            SCM(playerid,ORANGE,"[Greska] - Letjelica koja se nalazi u vasem racunu nije vise u vasem vlasnistvu!");
        }
        else
        {
            DestroyVehicle(LInfo[i][lownedvehicle]);
            LInfo[i][lownedvehicle] = CreateVehicle_H(LInfo[i][lhModel],LInfo[i][lhPozX],LInfo[i][lhPozY],LInfo[i][lhPozZ],LInfo[i][lhPozA],LInfo[i][lhBoja1],LInfo[i][lhBoja2],1000);
            IgracevaLetjelica[playerid] = i;
        }
    }
    if(PlayerInfo[playerid][Plovilo] != -1)
    {
        new i = PlayerInfo[playerid][Plovilo];
        if(strcmp(PInfo[i][phVlasnik],pime,true))
        {
            SCM(playerid,ORANGE,"[Greska] - Plovilo koje se nalazi u vasem racunu nije vise u vasem vlasnistvu!");
        }
        else
        {
            DestroyVehicle(PInfo[i][pownedvehicle]);
            PInfo[i][pownedvehicle] = CreateVehicle_H(PInfo[i][phModel],PInfo[i][phPozX],PInfo[i][phPozY],PInfo[i][phPozZ],PInfo[i][phPozA],PInfo[i][phBoja1],PInfo[i][phBoja2],1000);
            IgracevoPlovilo[playerid] = i;
        }
    }
    if(PlayerInfo[playerid][Biciklo] != -1)
    {
        new i = PlayerInfo[playerid][Biciklo];
        if(strcmp(BInfo[i][bhVlasnik],bime,true))
        {
            SCM(playerid,ORANGE,"[Greska] - Biciklo koje se nalazi u vasem racunu nije vise u vasem vlasnistvu!");
        }
        else
        {
            DestroyVehicle(BInfo[i][bownedvehicle]);
            BInfo[i][bownedvehicle] = CreateVehicle_H(BInfo[i][bhModel],BInfo[i][bhPozX],BInfo[i][bhPozY],BInfo[i][bhPozZ],BInfo[i][bhPozA],BInfo[i][bhBoja1],BInfo[i][bhBoja2],1000);
            IgracevoBiciklo[playerid] = i;
        }
    }
    new ip[24],ipquery[128];
    GetPlayerIp(playerid,ip,24);
    mysql_format(mysql,ipquery,sizeof(ipquery),"SELECT * FROM `ip banovi` WHERE `IP` = '%s'",ip);
    mysql_tquery(mysql,ipquery,"IPProvjera","i",playerid);
    if(PlayerInfo[playerid][Banovan] == 1)
    {
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SCM(playerid,-1,"");
        SetPlayerPos_H(playerid,-2486.8174,1386.1322,20.3487);
        SetPlayerCameraPos(playerid,-2493.6025,1408.7750,26.3313);
        SetPlayerCameraLookAt(playerid,-2583.5493,1598.5861,58.8296);
        SCM(playerid,0xDB023EFF,"G-Protect: {FFFFFF}Vas korisnicki racun je trenutno iskljucen sa servera! Izbaceni ste!");
        SetPlayerScore(playerid,PlayerInfo[playerid][Level]);
        SetTimerEx("Izbaciga",1000,false,"d",playerid);
        return 1;
    }
    if(PlayerInfo[playerid][OffBanovan] == 1)
    {
        new offbanime[MAX_PLAYER_NAME],offquery[128];
        RPIme(playerid,offbanime);
        mysql_format(mysql,offquery,128,"SELECT `OffBanRazlog` FROM `users` WHERE `Nick` = '%e'",offbanime);
        mysql_tquery(mysql,offquery,"OffBanRazlogProvjera","i",playerid);
        return 1;
    }
    if(PlayerInfo[playerid][ABanovan] == 1)
    {
        new gbanime[MAX_PLAYER_NAME],aquery[128];
        RPIme(playerid,gbanime);
        mysql_format(mysql,aquery,128,"SELECT `ABanRazlog` FROM `users` WHERE `Nick` = '%e'",gbanime);
        mysql_tquery(mysql,aquery,"GProtectBanRazlogProvjera","i",playerid);
        return 1;
    }
    if(MapIconsShown[playerid] != 1)
    {
        MapIconsShown[playerid] = 1;
        for(new i = 0; i < sizeof(HotelInfo); i++)
        {
            CreateDynamicMapIcon(HotelInfo[i][hUlazX],HotelInfo[i][hUlazY],HotelInfo[i][hUlazZ],59,-1,-1,-1,-1,100);
        }
        //---------------------------[ BANKOMATI ]----------------------------------------//
        CreateDynamicMapIcon(1701.58972168,-1907.92907715,13.21273708,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1790.08850098,-1881.94299316,13.21152306,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1144.17175293,-1840.15991211,13.23255730,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(360.60089111,-1802.92041016,4.38881016,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(996.83526611,-1820.26147461,13.43389034,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1102.18041992,-1460.67675781,15.43977451,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1553.85632324,-1684.04858398,13.19084263,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1468.73510742,-1772.21179199,18.43865585,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1416.06921387,-1658.46301270,13.18977451,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1498.28601074,-1749.91088867,15.08821201,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1837.25061035,-1420.52246094,13.20539951,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(411.88787842,-1504.86962891,31.13644409,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1186.19177246,-1368.95690918,13.21381474,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(826.10601807,-1385.39916992,13.20907784,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1494.10913086,-1310.54187012,13.56274033,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(2235.52148438,-1666.83276367,14.94258308,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1945.73950195,-2176.16503906,13.19710827,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(2714.10351562,-1880.09875488,10.69758701,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(2836.07324219,-1565.48876953,10.73664951,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(2668.67578125,-1095.91540527,69.03177643,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1429.66076660,-1022.14013672,23.47102356,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1210.29833984,-915.61431885,42.67538071,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1333.02514648,-1291.51000977,13.18977451,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1936.59277344,2155.99951172,10.46321201,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(-256.36203003,2605.83935547,62.50105286,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(-1428.63427734,2591.64501953,55.47883606,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(-2476.84179688,2251.35766602,4.62727451,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(-1980.61230469,131.93641663,27.33039856,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(-2420.17944336,987.90417480,44.93977356,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(-1964.88818359,1190.41088867,45.08821106,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(-81.44303894,-1184.33154297,1.39289951,60,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(661.36816406,-556.32757568,15.97883701,60,-1,-1,-1,-1,100);
        //---------------------------[ POSLOVI ]----------------------------------------//
        CreateDynamicMapIcon(-382.9731,-1438.7990,26.3288,52,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1414.1128,-1652.0675,13.3828,52,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1752.4969,-1894.1617,13.5574,52,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1957.9058,-1169.8892,20.3325,52,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1766.0603,-1704.1272,13.4723,52,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(2101.2695,-1802.4203,13.5547,52,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1018.4775,-1337.3567,13.5469,52,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1268.7833,-1271.9698,13.5457,52,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1610.8781,-1893.8276,13.5469,52,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(154.2135,-1945.8431,4.9070,52,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(609.6936,-1510.7194,14.9213,52,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(912.5673,-1235.1311,17.2109,52,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1650.5265,-1199.0647,19.7819,52,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1734.8921,-1943.5780,13.5698,52,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1983.0873,-2103.3318,13.5469,52,-1,-1,-1,-1,100);
        CreateDynamicMapIcon(1956.7339,-2183.5171,13.5469,52,-1,-1,-1,-1,100);
    }
    return 1;
}
Reply
#4

How you mean spliting code? Thanks
Reply
#5

can you maybe give me some example how it should like Thanks, and why is happens that I sometims get that message and sometimes not. I was enter know twice and I check server log it's all loaded fine.
Reply
#6

I guess he means something like this:

pawn Код:
forward LoadWeapons(playerid);
forward LoadPos(playerid);
forward LoadAccount(playerid);

public LoadAccount(playerid)
{
    //Code

    LoadWeapons(playerid);

    //Code

    LoadPos(playerid);

    return 1;
}


public LoadWeapons(playerid)
{
    //Code
    return 1;
}

public LoadPos(playerid)
{
    //Code
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)