Jump to content

xCosminu.

Membru
  • Posts

    23
  • Joined

  • Last visited

Posts posted by xCosminu.

  1. ~ERORI-WARNING~

    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6151) : warning 225: unreachable code
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6146) : warning 204: symbol is assigned a value that is never used: "string"
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(12186) : error 017: undefined symbol "string"
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(12186) : error 017: undefined symbol "string"
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(12186) : error 029: invalid expression, assumed zero
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(12186) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


    4 Errors.

     

     

    liniii: 

    public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
    {
        new string[300];
        if (playertextid == LoginPTD[2]) ShowPlayerDialog(playerid,DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD,"SERVER: LOGIN","Welcome to the Elapsed RPG Server.\n\nVa rugam sa introduceti parola mai jos!", "LOGIN", "Anulare");
        {
            return 1;
        }
        return 0;
    }

     

     

              SendClientMessage(playerid, COLOR_GENANNOUNCE, " ");
                SendClientMessage(playerid, COLOR_GENANNOUNCE, " ");
                format(string, sizeof(string), "Name: %s", GetName(playerid));
                PlayerTextDrawSetString(playerid, LoginPTD[5], string);
                PlayerTextDrawSetString(playerid, LoginPTD[2], "password: ~b~click");
                format(string, sizeof(string), "Last Login:~n~%s", GetName(playerid));
                PlayerTextDrawSetString(playerid, LoginPTD[13], string);
                
                for(new i = 0; i < 19; i++) PlayerTextDrawShow(playerid, LoginPTD);
                for(new i = 0; i < 1; i++) TextDrawShowForPlayer(playerid, LoginTD);

  2. Am adaugat si eu un td nou login...si nu vad care este problema...

     

    public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
    {
        if(playertextid == DIALOG_LOGIN1 || DIALOG_LOGIN2 || DIALOG_LOGIN3[playerid])
        {
               return 1;
        }
        return 0;
    }

     

    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6130) : warning 213: tag mismatch
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6130) : error 029: invalid expression, assumed zero
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6130) : error 029: invalid expression, assumed zero
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6130) : warning 215: expression has no effect
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6130) : error 001: expected token: ";", but found "]"
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6130) : fatal error 107: too many error messages on one line

  3. Am adaugat si eu un td nou login...si nu vad care este problema...

     

    public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
    {
        if(playertextid == DIALOG_LOGIN1 || DIALOG_LOGIN2 || DIALOG_LOGIN3[playerid])
        {
               return 1;
        }
        return 0;
    }

     

    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6130) : warning 213: tag mismatch
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6130) : error 029: invalid expression, assumed zero
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6130) : error 029: invalid expression, assumed zero
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6130) : warning 215: expression has no effect
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6130) : error 001: expected token: ";", but found "]"
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6130) : fatal error 107: too many error messages on one line

  4. Deci, am creeat o factiune nou, bun, am facut tot, e in regula, dau makeleader imi dau lider, e ok, imi dau respawn, ma da la hq, bunn!!Dar dau /invite cuiva, accepta cererea si apoi ii se da respawn automat, dar in loc de hq, il da la spawn..atat, pot sa dau respawn cat vreau, il da la spawn, doar pe lider il lasa la hq, restu rank 1 2 3 4 5 6,  ii da la spawn....imi poate explica cineva cam cum as putea rezolva asta? :D 

    MULTUMESC~!!  :D 

  5. Chiar acum, nobilzeusAdv a spus:

    cmd:makeleader

     

    si dute la onplayerlogin si cauta ceva gen pLeader si vezi daca sunt mesaje ceva, daca nu sunt inseamna ca este problema de la comanda

    Uite asta e makeleader:

    CMD:makeleader(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 4)
            {
                new id,para1,level,string[256],giveplayer[25],sendername[25],escape[256];
                 if(sscanf(params, "ui",para1,level))
                {
                     SendClientMessage(playerid, COLOR_WHITE, "{FF0000}Scrie: {FFFFFF}/makeleader <Name/Playerid> <Number(1-15)>");
                    SendClientMessage(playerid, COLOR_WHITE, "{FFF8C6}(1) LSPD (2) FBI (3) National Guard (4) Los Aztecas");
                    SendClientMessage(playerid, COLOR_WHITE, "{FFF8C6}(5) Grove Street (6) Los Vagos (8) LVPD");
                    SendClientMessage(playerid, COLOR_WHITE, "{FFF8C6}(9) News Reporter (10) Ballas (11) Hitman Agency (12) School Instructors");
                    SendClientMessage(playerid, COLOR_WHITE, "{FFF8C6}(13) Los Santos Taxi (14) Paramedic (15) Faction Elapsed");
                    return 1;
                }
                if(level > 15 || level < 0) return SendClientMessage(playerid, COLOR_WHITE,"{FFB870}Dont go below number 1, or above number 15.");
                if(level == 7) return SendClientMessage(playerid, COLOR_WHITE,"{FFB870}Aceasta factiune nu mai exista.");
                if(IsPlayerConnected(para1))
                {
                    if(para1 != INVALID_PLAYER_ID)
                    {
                        if(PlayerInfo[para1][pMember] > 0 && PlayerInfo[para1][pLeader] > 0) return SendClientMessage(playerid,COLOR_WHITE,"{FFB870}That player is in a faction.");
                        GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        new ftext[50],query[256];
                        if(level == 1) { ftext = "Los Santos Police Department"; } //Police Force
                        else if(level == 2) { ftext = "Federal Bureau Of Investigation"; } //FBI
                        else if(level == 3) { ftext = "National Guard"; } //National Guard
                        else if(level == 4) { ftext = "Los Aztecas"; } //Los Aztecas
                        else if(level == 5) { ftext = "Grove Street"; } //Grove Street
                        else if(level == 6) { ftext = "Los Vagos"; } //Los Vagos
                        else if(level == 8) { ftext = "L.V Police Dep"; } //LVPD
                        else if(level == 9) { ftext = "News Reporter"; } //News Reporter
                        else if(level == 10) { ftext = "Ballas"; } //Ballas
                        else if(level == 11) { ftext = "Hitman"; } //The Agency
                        else if(level == 12) { ftext = "School Instructors"; } //School Instructors
                        else if(level == 13) { ftext = "Taxi LS"; } //Los Santos Taxi
                        else if(level == 14) { ftext = "Paramedic Department LV"; } //Paramedic
                        else if(level == 15) { ftext = "Faction Elapsed"; } //Faction Elapsed
                        PlayerInfo[para1][pMember] = level;
                        PlayerInfo[para1][pLeader] = level;
                        format(string, sizeof(string), "Admin %s has set you to lead group %s.",sendername,ftext);
                        mysql_format(SQL, query, sizeof(query), "INSERT INTO `emails` (`playerid`,`Message`) VALUES('%d','%s')",PlayerInfo[id][pSQLID],string);
                        mysql_tquery(SQL,query,"","");
                        format(string, sizeof(string), "<< Admin %s has set %s to lead group %s >>",sendername,giveplayer,ftext);
                        ABroadCast(COLOR_RED2,string,1);
                        format(string, sizeof(string), "%s is now the leader of faction %s.", giveplayer, ftext);
                        mysql_real_escape_string(string, escape);
                        mysql_format(SQL, query, sizeof(query), "INSERT INTO faction_logs (`text`, `player`,`leader`) VALUES ('%s','%d','%d')", escape, PlayerInfo[para1][pSQLID],PlayerInfo[playerid][pSQLID]);
                        mysql_tquery(SQL,query,"","");
                        mysql_format(SQL, query, sizeof(query), "INSERT INTO staff_logs (`text`) VALUES ('%s')", escape);
                        mysql_tquery(SQL,query,"","");
                        if(level == 0) { PlayerInfo[para1][pModel] = 0; }
                        else if(level == 1) { PlayerInfo[para1][pModel] = 304; } //Police Force
                        else if(level == 2) { PlayerInfo[para1][pModel] = 286; } //FBI
                        else if(level == 3) { PlayerInfo[para1][pModel] = 273; } //National Guard
                        else if(level == 4) { PlayerInfo[para1][pModel] = 113; } //Los Aztecas
                        else if(level == 5) { PlayerInfo[para1][pModel] = 270; } //Grove Street
                        else if(level == 6) { PlayerInfo[para1][pModel] = 109; } //Los Vagos
                        else if(level == 8) { PlayerInfo[para1][pModel] = 304; } //LVPD
                        else if(level == 9) { PlayerInfo[para1][pModel] = 147; } //News Reporter
                        else if(level == 10) { PlayerInfo[para1][pModel] = 296; } //Ballas
                        else if(level == 11) { PlayerInfo[para1][pModel] = 294; } //The Agency
                        else if(level == 12) { PlayerInfo[para1][pModel] = 189; } //School Instructors
                        else if(level == 13) { PlayerInfo[para1][pModel] = 228; } //Los Santos Taxi
                        else if(level == 14) { PlayerInfo[para1][pModel] = 279; } //Paramedic
                        else if(level == 15) { PlayerInfo[para1][pModel] = 82; } //Faction Elapsed
                        if(level == 0)
                        {
                            gTeam[para1] = 3;
                            PlayerInfo[para1][pTeam] = 3;
                        }
                        else if(level == 1 || level == 2 || level == 3 || level == 7 || level == 8)
                        {
                            gTeam[para1] = 2;
                            PlayerInfo[para1][pTeam] = 2;
                        }
                        else if(level == 4 || level == 5 || level == 6 || level == 10)
                        {
                            gTeam[para1] = 5;
                            PlayerInfo[para1][pTeam] = 5;
                        }
                        else if(level == 9 || level == 12 || level == 13 || level == 14    || level == 15)
                        {
                            gTeam[para1] = 4;
                            PlayerInfo[para1][pTeam] = 4;
                        }
                        else if(level == 11)
                        {
                            gTeam[para1] = 11;
                            PlayerInfo[para1][pTeam] = 11;
                        }
                        SetPlayerSkin(para1, PlayerInfo[para1][pModel]);
                        PlayerInfo[para1][pRank] = 7;
                         new wakaname[25];
                        GetPlayerName(para1,wakaname,25);
                        new str[356];
                        mysql_format(SQL,str,356,"UPDATE users SET `Leader`='%d',`Member`='%d',`Rank`='7',`Team`='%d',`Model`='%d' WHERE `name`='%s'",PlayerInfo[para1][pLeader],PlayerInfo[para1][pMember],PlayerInfo[para1][pTeam],PlayerInfo[para1][pModel],PlayerInfo[para1][pNormalName]);
                        mysql_tquery(SQL,str,"","");
                        SetPlayerToTeamColor(para1);
                    }
                }
                 else
                {
                    SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected.");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
            }
        }
        return 1;

     

     

     

    SI LA PLAYER ON LOGIN ESTE PLEADER PMEMBER...AJUTA MA :))
     

     

     

    public OnPlayerLogin(playerid,password[])
    {
        new playername2[MAX_PLAYER_NAME];
        GetPlayerName(playerid, playername2, sizeof(playername2));
        GameTextForPlayer(playerid, "~w~Asteapta...~n~~y~VERIFICAM PAROLA", 700, 3);
        new playerip[16];
        GetPlayerIp(playerid,playerip,sizeof(playerip));
        if(NumIp(playerip, playerid) >= 999 && !IsBotOnIP(playerip))
        {
             SendClientMessage(playerid, COLOR_LIGHTRED, "There are already 2 players connected with same IP.");
             Kick(playerid);
             return 1;
        }
        new qstr[256];
        format(qstr,100,"SELECT * FROM users WHERE `name`='%s' AND `password`='%s'",playername2,password);
        new Cache: pass = mysql_query(SQL,qstr);
        if(cache_get_row_count() > 0)
        {
            cache_get_field_content(0, "password", PlayerInfo[playerid][pKey], SQL, 130);
            cache_get_field_content(0, "name", PlayerInfo[playerid][pNormalName], SQL, 130);
            PlayerInfo[playerid][pLevel]                    = cache_get_field_content_int(0, "Level");
            PlayerInfo[playerid][pAdmin]                    = cache_get_field_content_int(0, "Admin");
            PlayerInfo[playerid][pHelper]                   = cache_get_field_content_int(0, "Helper");
            PlayerInfo[playerid][pPremiumAccount]           = cache_get_field_content_int(0, "Premium");
            PlayerInfo[playerid][pVIP]                       = cache_get_field_content_int(0, "VIP");
            PlayerInfo[playerid][pBeta]                     = cache_get_field_content_int(0, "Beta");
            PlayerInfo[playerid][pSupport]                  = cache_get_field_content_int(0, "Support");
            PlayerInfo[playerid][pManagerLideri]            = cache_get_field_content_int(0, "ManagerLideri");
            PlayerInfo[playerid][pManagerLideriSupport]     = cache_get_field_content_int(0, "ManagerLideriSupport");
            PlayerInfo[playerid][pManagerDepartamente]      = cache_get_field_content_int(0, "ManagerDepartamente");
            PlayerInfo[playerid][pManagerTaxi]              = cache_get_field_content_int(0, "ManagerTaxi");
            PlayerInfo[playerid][pManagerInstructori]       = cache_get_field_content_int(0, "ManagerInstructori");
            PlayerInfo[playerid][pManagerMedici]            = cache_get_field_content_int(0, "ManagerMedici");
            PlayerInfo[playerid][pManagerHitman]            = cache_get_field_content_int(0, "ManagerHitman");
            PlayerInfo[playerid][pPremiumPoints]            = cache_get_field_content_int(0, "PremiumPoints");
            PlayerInfo[playerid][pConnectTime]              = cache_get_field_content_int(0, "ConnectedTime");
            PlayerInfo[playerid][pReg]                      = cache_get_field_content_int(0, "Registered");
            PlayerInfo[playerid][pSex]                      = cache_get_field_content_int(0, "Sex");
            PlayerInfo[playerid][pAge]                      = cache_get_field_content_int(0, "Age");
            PlayerInfo[playerid][pGasCan]                   = cache_get_field_content_int(0, "GasCan");
            PlayerInfo[playerid][pOrigin]                   = cache_get_field_content_int(0, "Origin");
            PlayerInfo[playerid][pMuted]                    = cache_get_field_content_int(0, "Muted");
             PlayerInfo[playerid][pMuteTime]                 = cache_get_field_content_int(0, "MuteTime");
            PlayerInfo[playerid][pExp]                      = cache_get_field_content_int(0, "Respect");
            PlayerInfo[playerid][pCash]                     = cache_get_field_content_int(0, "Money");
            PlayerInfo[playerid][pAccount]                  = cache_get_field_content_int(0, "Bank");
            PlayerInfo[playerid][pCrimes]                   = cache_get_field_content_int(0, "Crimes");
            PlayerInfo[playerid][pKills]                    = cache_get_field_content_int(0, "Kills");
            PlayerInfo[playerid][pDeaths]                   = cache_get_field_content_int(0, "Deaths");
            PlayerInfo[playerid][pArrested]                 = cache_get_field_content_int(0, "Arrested");
            PlayerInfo[playerid][pWantedDeaths]             = cache_get_field_content_int(0, "WantedDeaths");
            PlayerInfo[playerid][pPhoneBook]                = cache_get_field_content_int(0, "Phonebook");
            PlayerInfo[playerid][pWantedLevel]              = cache_get_field_content_int(0, "WantedLevel");
            PlayerInfo[playerid][pFishes]                   = cache_get_field_content_int(0, "Fishes");
            PlayerInfo[playerid][pJob]                      = cache_get_field_content_int(0, "Job");
            PlayerInfo[playerid][pPayCheck]                 = cache_get_field_content_int(0, "Paycheck");
            PlayerInfo[playerid][pHeadValue]                = cache_get_field_content_int(0, "HeadValue");
            PlayerInfo[playerid][pJailed]                   = cache_get_field_content_int(0, "Jailed");
            PlayerInfo[playerid][pJailTime]                 = cache_get_field_content_int(0, "JailTime");
            PlayerInfo[playerid][pMats]                     = cache_get_field_content_int(0, "Materials");
            PlayerInfo[playerid][pDrugs]                    = cache_get_field_content_int(0, "Drugs");
            PlayerInfo[playerid][pLeader]                   = cache_get_field_content_int(0, "Leader");
            PlayerInfo[playerid][pMember]                   = cache_get_field_content_int(0, "Member");
            PlayerInfo[playerid][pRank]                     = cache_get_field_content_int(0, "Rank");
            PlayerInfo[playerid][pFACWarns]                 = cache_get_field_content_int(0, "FWarn");
            PlayerInfo[playerid][pFpunish]                  = cache_get_field_content_int(0, "FPunish");
            PlayerInfo[playerid][pLawyer]                   = cache_get_field_content_int(0, "Acceptpoints");
            PlayerInfo[playerid][pFishSkill]                = cache_get_field_content_int(0, "FishSkill");
            PlayerInfo[playerid][pSpawnChange]              = cache_get_field_content_int(0, "SpawnChange");
             PlayerInfo[playerid][pRobSkill]                 = cache_get_field_content_int(0, "RobSkill");
            PlayerInfo[playerid][pTruckSkill]               = cache_get_field_content_int(0, "TruckSkill");
            PlayerInfo[playerid][pTruckTimes]               = cache_get_field_content_int(0, "TruckTimes");
            PlayerInfo[playerid][pTruckRem]                 = cache_get_field_content_int(0, "TruckRem");
            PlayerInfo[playerid][pFarmSkill]                = cache_get_field_content_int(0, "FarmSkill");
            PlayerInfo[playerid][pFarmTimes]                = cache_get_field_content_int(0, "FarmTimes");
            PlayerInfo[playerid][pFarmRem]                  = cache_get_field_content_int(0, "FarmRem");
            PlayerInfo[playerid][pPizzaSkill]               = cache_get_field_content_int(0, "PizzaSkill");
            PlayerInfo[playerid][pPizzaTimes]               = cache_get_field_content_int(0, "PizzaTimes");
            PlayerInfo[playerid][pPizzaRem]                 = cache_get_field_content_int(0, "PizzaRem");
            PlayerInfo[playerid][pArmsSkill]                = cache_get_field_content_int(0, "ArmsSkill");
            PlayerInfo[playerid][pArmsTimes]                = cache_get_field_content_int(0, "ArmsTimes");
            PlayerInfo[playerid][pArmsRem]                    = cache_get_field_content_int(0, "ArmsRem");
            PlayerInfo[playerid][pBusSkill]                    = cache_get_field_content_int(0, "BusSkill");
            PlayerInfo[playerid][pBusTimes]                    = cache_get_field_content_int(0, "BusTimes");
            PlayerInfo[playerid][pBusRem]                    = cache_get_field_content_int(0, "BusRem");
            PlayerInfo[playerid][pFishTimes]                = cache_get_field_content_int(0, "FishTimes");
            PlayerInfo[playerid][pFishRem]                  = cache_get_field_content_int(0, "FishRem");
            PlayerInfo[playerid][pRobRem]                   = cache_get_field_content_int(0, "RobRem");
            PlayerInfo[playerid][pRobTimes]                 = cache_get_field_content_int(0, "RobTimes");
            PlayerInfo[playerid][pHealth]                   = cache_get_field_content_float(0, "pHealth");
            PlayerInfo[playerid][pInt]                      = cache_get_field_content_int(0, "Inter");
            PlayerInfo[playerid][pLocal]                    = cache_get_field_content_int(0, "Local");
            PlayerInfo[playerid][pTeam]                     = cache_get_field_content_int(0, "Team");
            PlayerInfo[playerid][pModel]                    = cache_get_field_content_int(0, "Model");
            PlayerInfo[playerid][pPnumber]                  = cache_get_field_content_int(0, "PhoneNr");
            PlayerInfo[playerid][pPhousekey]                = cache_get_field_content_int(0, "House");
            PlayerInfo[playerid][pPbiskey]                  = cache_get_field_content_int(0, "Bizz");
            PlayerInfo[playerid][pPos_x]                    = cache_get_field_content_float(0, "Pos_x");
            PlayerInfo[playerid][pPos_y]                    = cache_get_field_content_float(0, "Pos_y");
            PlayerInfo[playerid][pPos_z]                    = cache_get_field_content_float(0, "Pos_z");
            PlayerInfo[playerid][pRob]                      = cache_get_field_content_int(0, "Rob");
            PlayerInfo[playerid][pCarLicT]                  = cache_get_field_content_int(0, "CarLicT");
            PlayerInfo[playerid][pCarLic]                   = cache_get_field_content_int(0, "CarLic");
            PlayerInfo[playerid][pCarLicSuspend]            = cache_get_field_content_int(0, "CarLicSuspend");
            PlayerInfo[playerid][pGunLicSuspend]            = cache_get_field_content_int(0, "GunLicSuspend");
            PlayerInfo[playerid][pFlyLicT]                  = cache_get_field_content_int(0, "FlyLicT");
            PlayerInfo[playerid][pFlyLic]                   = cache_get_field_content_int(0, "FlyLic");
            PlayerInfo[playerid][pBoatLicT]                 = cache_get_field_content_int(0, "BoatLicT");
            PlayerInfo[playerid][pBoatLic]                  = cache_get_field_content_int(0, "BoatLic");
            PlayerInfo[playerid][pGunLicT]                  = cache_get_field_content_int(0, "GunLicT");
            PlayerInfo[playerid][pGunLic]                   = cache_get_field_content_int(0, "GunLic");
            PlayerInfo[playerid][pPayDay]                   = cache_get_field_content_int(0, "PayDay");
            PlayerInfo[playerid][pTut]                      = cache_get_field_content_int(0, "Tutorial");
            PlayerInfo[playerid][pWarns]                    = cache_get_field_content_int(0, "Warnings");
            PlayerInfo[playerid][pRented]                   = cache_get_field_content_int(0, "Rented");
            PlayerInfo[playerid][pFuel]                     = cache_get_field_content_int(0, "Fuel");
            PlayerInfo[playerid][pWTalkie]                  = cache_get_field_content_int(0, "WTalkie");
            cache_get_field_content(0, "Email", PlayerInfo[playerid][pEmail], SQL, 255);
            cache_get_field_content(0, "RegisterDate", PlayerInfo[playerid][pRegistredDate], SQL, 255);
            PlayerInfo[playerid][pClan]                     = cache_get_field_content_int(0, "Clan");
            PlayerInfo[playerid][pHitT]                     = cache_get_field_content_int(0, "HitT");
            PlayerInfo[playerid][pCRank]                    = cache_get_field_content_int(0, "CRank");
            PlayerInfo[playerid][pCWarns]                   = cache_get_field_content_int(0, "ClanWarns");
            PlayerInfo[playerid][pPhone]                    = cache_get_field_content_int(0, "Phone");
            PlayerInfo[playerid][pSQLID]                    = cache_get_field_content_int(0, "id");
            PlayerInfo[playerid][pPcarkey]                  = cache_get_field_content_int(0, "Carkey");
            PlayerInfo[playerid][pmotokey]                  = cache_get_field_content_int(0, "motokey");
            PlayerInfo[playerid][pprcarkey2]                = cache_get_field_content_int(0, "prcarkey2");
            PlayerInfo[playerid][pPPluscarkey]              = cache_get_field_content_int(0, "pluscarkey");
            PlayerInfo[playerid][pPPluscarkey2]             = cache_get_field_content_int(0, "pluscarkey2");
            PlayerInfo[playerid][pPlusSlot1]                = cache_get_field_content_int(0, "PlusSlot1");
            PlayerInfo[playerid][pPlusSlot2]                = cache_get_field_content_int(0, "PlusSlot2");
            PlayerInfo[playerid][phelikey]                  = cache_get_field_content_int(0, "helikey");
            PlayerInfo[playerid][pprcarkey]                 = cache_get_field_content_int(0, "prcarkey");
            cache_get_field_content(0, "Victim", PlayerInfo[playerid][pVictim], SQL, 255);
            cache_get_field_content(0, "Accused", PlayerInfo[playerid][pAccused], SQL, 255);
            cache_get_field_content(0, "Crime1", PlayerInfo[playerid][pCrime1], SQL, 255);
            cache_get_field_content(0, "Crime2", PlayerInfo[playerid][pCrime2], SQL, 255);
            cache_get_field_content(0, "Crime3", PlayerInfo[playerid][pCrime3], SQL, 255);
            PlayerInfo[playerid][pBTemp]                    = cache_get_field_content_int(0, "BTemp");
            PlayerInfo[playerid][pBYear]                    = cache_get_field_content_int(0, "BYear");
            PlayerInfo[playerid][pBMonth]                   = cache_get_field_content_int(0, "BMonth");
            PlayerInfo[playerid][pBDay]                     = cache_get_field_content_int(0, "BDay");
            cache_get_field_content(0, "BBy", PlayerInfo[playerid][pBBy], SQL, 255);
            cache_get_field_content(0, "BReason", PlayerInfo[playerid][pBReason], SQL, 255);
            PlayerInfo[playerid][pStatus]                   = cache_get_field_content_int(0, "Status");
            PlayerInfo[playerid][pALeader]                  = cache_get_field_content_int(0, "ALeader");
            PlayerInfo[playerid][pLanguage]                 = cache_get_field_content_int(0, "Language");
            PlayerInfo[playerid][pClanTag]                  = cache_get_field_content_int(0, "ClanTag");
            PlayerInfo[playerid][pFWorks]                   = cache_get_field_content_int(0, "FWorks");
            PlayerInfo[playerid][pVirtualPD]                = cache_get_field_content_int(0, "VirtualPD");
            PlayerInfo[playerid][pGlasses]                  = cache_get_field_content_int(0, "Glasses");
            PlayerInfo[playerid][pFactionTime]              = cache_get_field_content_int(0, "FactionTime");
            PlayerInfo[playerid][pCredits]                  = cache_get_field_content_int(0, "CreditsF");
            PlayerInfo[playerid][pNMuted]                   = cache_get_field_content_int(0, "NMuted");
            PlayerInfo[playerid][pReportMute]               = cache_get_field_content_int(0, "ReportMute");
            PlayerInfo[playerid][pHelpedPlayers]            = cache_get_field_content_int(0, "HelpedPlayers");
            PlayerInfo[playerid][pCommands]                 = cache_get_field_content_int(0, "Commands");
            PlayerInfo[playerid][pHost]                        = cache_get_field_content_int(0, "Host");
            PlayerInfo[playerid][pPhoneBlock]                = cache_get_field_content_int(0, "PhoneBlock");
            PlayerInfo[playerid][pHiddenColor]                = cache_get_field_content_int(0, "HiddenColor");
            PlayerInfo[playerid][pGiftTime]                    = cache_get_field_content_int(0, "GiftTime");
            PlayerInfo[playerid][pHats]                     = cache_get_field_content_int(0, "Hats");
            PlayerInfo[playerid][pFightStyle]               = cache_get_field_content_int(0, "FightStyle");
            PlayerInfo[playerid][pHUD1]                       = cache_get_field_content_int(0, "HUD1");
            PlayerInfo[playerid][pHUD2]                       = cache_get_field_content_int(0, "HUD2");
            PlayerInfo[playerid][pHUD3]                       = cache_get_field_content_int(0, "HUD3");
            for(new ev=0; ev<50; ev++)
            {
                new strb[30];
                format(strb, sizeof(strb),"Quest%d",ev);
                QEvent[playerid][ev]                         = cache_get_field_content_int(0, strb);
            }
        }

  6. ERORI:

    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(15741) : error 032: array index out of bounds (variable "xhq")
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(15741) : error 032: array index out of bounds (variable "yhq")
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(15741) : error 032: array index out of bounds (variable "zhq")
    C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(15741) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


    4 Errors.

     LINII:

    hq[4] = 1456.7423;      yhq[4] = 2773.3423;             zhq[4] = 10.8203;
        xhq[5] = 2495.3271;       yhq[5] = -1690.6740;         zhq[5] = 14.7656;
        xhq[6] = 725.6769;      yhq[6] = -1440.4506;         zhq[6] = 13.5391;
        xhq[7] = 689.9420;       yhq[7] = -1275.9573;           zhq[7] = 13.5595;
        xhq[8] = 2287.1047;       yhq[8] = 2431.7996;           zhq[8] = 10.8203;
        xhq[9] = -329.5258;      yhq[9] = 1536.7759;          zhq[9] = 76.6117;
        xhq[10] = 1455.2687;     yhq[10] = 750.8684;          zhq[10] = 11.0234;
        xhq[11] = 1081.1794;      yhq[11] = -345.3979;           zhq[11] = 73.9825;
        xhq[12] = 2435.3064;     yhq[12] = 1671.0139;          zhq[12] = 10.8203;
        xhq[13] = 2475.7747;     yhq[13] = -1750.5632;       zhq[13] = 13.5469;
        xhq[14] = 1173.2563;     yhq[14] = -1323.3102;       zhq[14] = 15.3943;
        xhq[15] = 785.6634;     yhq[15] = -826.9602;           zhq[15] = 70.2896;

    la ultima am problema  xhq[15] = 785.6634;     yhq[15] = -826.9602;           zhq[15] = 70.2896; 

    Imi poate explica cineva?

    MULTUMESC ANTICIPAT!

     

  7. spune mi ce sa ti dau

    uite

     

    CMD:cinvite(playerid, params[])
    {
        if(PlayerInfo[playerid][pCRank] < 6) return SendClientMessage(playerid, COLOR_WHITE, "Doar playerii cu rank 6 si 7 pot invita membri in clan.");
        new userID,giveplayer[25],sendername[25],szMessage[119];
        if(sscanf(params, "u", userID)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /cinvite [id]");
        {
            if(GetClanMembers(PlayerInfo[playerid][pClan]) >= ClanInfo[PlayerInfo[playerid][pClan]][cClanSlots]) return SendClientMessage(playerid, COLOR_WHITE, "You have reached maximum members.");
            if(userID == playerid) return SendClientMessage(playerid, COLOR_WHITE, "Nu poti sa te inviti singur in clan.");
            if(ClanInfo[PlayerInfo[playerid][pClan]][cClanActive] < 0) return SendClientMessage(playerid, COLOR_WHITE, "Nu poti invita membri deoarece clanul a expirat (pentru prelungire intra pe panel).");
            if(IsPlayerConnected(userID))
            {
                if(PlayerInfo[userID][pClan] == 1)
                {
                    GetPlayerName(userID,giveplayer,sizeof(giveplayer));
                    format(szMessage, sizeof(szMessage), "You have invited %s to join your clan.", giveplayer);
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);

                    GetPlayerName(playerid,sendername,sizeof(sendername));
                    format(szMessage, sizeof(szMessage), "%s te-a invitat in clanul %s. Foloseste /accept cinvite %d pentru a accepta.", sendername, ClanInfo[PlayerInfo[playerid][pClan]][cClanName], playerid);
                    SendClientMessage(userID, COLOR_BLUE, "Invitatie noua in clan:");
                    SendClientMessage(userID, COLOR_BLUE, szMessage);

                    SetPVarInt(userID, "cinvID", PlayerInfo[playerid][pClan]);
                    SetPVarInt(userID, "cinvIDD", playerid);
                }
            }
        }
        return 1;
    }

     

     

    stock GetClanMembers(clanid)
    {
        new string[256],
            members=15;
        format(string, sizeof(string), "SELECT * FROM `users` WHERE `Clan` = '%d'", clanid);
        new Cache: membresult = mysql_query(SQL, string);
        for(new i, j = cache_get_row_count (); i != j; ++i)
        {
            members++;
        }
        cache_delete(membresult);
        return members;
    }

     

     

     

    if(listitem == 6)
                    {
                        new i,stringyy[500];
                        if(PlayerInfo[playerid][pPremiumPoints] >= 5000)
                        {
                            if(PlayerInfo[playerid][pClan] == 0)
                            {
                                PlayerInfo[playerid][pPremiumPoints] -= 5000;
                                Update(playerid, pPremiumPointsx);
                                format(stringyy, sizeof(stringyy), "You have bought a clan! (-5000 premium points)");
                                SendClientMessage(playerid, COLOR_YELLOW, stringyy);
                                PlayerInfo[playerid][pCRank] = 7;

                            //    mysql_format(SQL, safeString, sizeof(safeString), "INSERT INTO clans (clanName) VALUES('New Clan')");
                            //    mysql_tquery(SQL,safeString,"","");
                            //    i = mysql_insert_id();
                                //========
                                new Cache: resultoccc = mysql_query(SQL,  "INSERT INTO `clans` (`clanName`) VALUES('New Clan')");

                                i = cache_insert_id();
                                cache_delete(resultoccc);
                                
                                ClanInfo[cClanExpire] = gettime() + (90*86400);
                                ClanInfo[cClanSlots] = 15;
                                ClanInfo[cClanActive] = 1;

                                PlayerInfo[playerid][pClan] = i;
                                
                                mysql_format(SQL, stringyy, sizeof(stringyy), "UPDATE `clans` SET `clanExpire`='%d' WHERE `clanID`='%d'",ClanInfo[cClanExpire],i);
                                mysql_tquery(SQL, stringyy, "", "");

                                new y,m,d,h,mi,s;
                                getdate(y,m,d);
                                gettime(h,mi,s);
                                mysql_format(SQL, stringyy, sizeof(stringyy), "UPDATE users SET `CRank`='7',`Clan`='%d',`PremiumPoints`='%d',`ClanJoin`='%02d-%02d-%d %02d:%02d:%02d' WHERE `name`='%s'", PlayerInfo[playerid][pClan], PlayerInfo[playerid][pPremiumPoints],d,m,y,h,mi,s,PlayerInfo[playerid][pNormalName]);
                                mysql_tquery(SQL,stringyy,"","");
                                
                                new strings[200],name[30],stringss[200],str[300];
                                GetPlayerName(playerid, name, sizeof(name));
                                format(strings, sizeof(strings), "/shop: %s created a new clan.",name);
                                ABroadCast(COLOR_YELLOW,strings,6);
                                mysql_real_escape_string(strings, stringss);
                                mysql_format(SQL,str,sizeof(str), "INSERT INTO `shop_logs` (`playerid`,`Message`) VALUES('%d','%s')",PlayerInfo[playerid][pSQLID],stringss);
                                mysql_tquery(SQL,str,"","");
                                ShowPlayerDialog(playerid, DIALOG_CHOOSECLANNAME, DIALOG_STYLE_INPUT, "Clan name", "Insert clan name in the box below:\n(You can't change it after that!)", "Ok", "");

                            }
                            else return SCM(playerid,COLOR_WHITE,"You already are in a clan! Use /quitclan first.");
                        }
                        else return ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Not enough points", "You don't have enough premium points to do this.", "Close", "");
                    }

×
×
  • 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.