Jump to content

MiritaXD

Membru
  • Posts

    186
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by MiritaXD

  1. if(CpZiar[playerid] == 1)
        {
            if(IsPlayerAttachedObjectSlotUsed(playerid,6))
            {
                new rand, money, exp, string[256];
                if(GetPVarInt(playerid, "InHand") == 0) return SCM(playerid, -1, "Blablabla!");
    	        money = 15000 + random(5000);
                exp = 3 + random(3);
    	        PlayerInfo[playerid][pMoney] += money;
                GivePlayerMoneyEx(playerid, money);
                PlayerInfo[playerid][pExp] += exp;
    	        MoneyEarned[playerid] += money;
                PlayerInfo[playerid][pMoney] += money;
    	        UpdateVariable(playerid, pMoneyx);
                UpdateVariable(playerid, pExpx);
    	        format(string, sizeof(string), "(Job): {ffffff}Ai primit %d puncte de experienta.", exp);
                SendClientMessage(playerid, 0x00e1edFF, string);
    	        rand = random(sizeof(RandomZiar));
                SetPlayerCheckpoint(playerid, RandomZiar[rand][0], RandomZiar[rand][1], RandomZiar[rand][2], 2.0);
    	        format(string, sizeof(string), "Informatii Job~n~~n~Ai castigat: $%s~n~Castig Total: $%s", FormatNumber(money),                                    FormatNumber(MoneyEarned[playerid]));
                PlayerTextDrawSetString(playerid, JobTD[6], string);
                PlayerTextDrawShow(playerid, JobTD[6]);
    	        SetPVarInt(playerid, "InHand", 0);
                SetPlayerSpecialAction(playerid, 0);
                RemovePlayerAttachedObject(playerid, 6);
                ClearAnimations(playerid);
            }
        }

     

  2. CMD:getjob(playerid, params[]) {
        if(PlayerJob[playerid] != 0) return SCM(playerid, COLOR_ORANGERED, "Ai deja un job.");
        new string[256];
        if(!IsPlayerInRangeOfPoint(playerid, 5.0, 2795.7803,-1619.5692,10.9219)) return SCM(playerid, COLOR_ORANGERED, "Nu esti in zona unui job.");
        PlayerJob[playerid] = 1;
        format(string, sizeof(string), "Noul tau job este %s", JOB_NAME1); SCM(playerid, COLOR_ORANGERED, string);
        return 1;
    }
    	
  3.  

    Codu tau(din pastebin)

     if(PlayerInfo[playerid][pCrates][0] == 0); return SCM(playerid, -1, "EROARE: Nu ai un crate normal!");

    pune

    if(PlayerInfo[playerid][pCrates][0] == 0) return SCM(playerid, -1, "EROARE: Nu ai un crate normal!");
  4. Acum 1 oră, Stefan a spus:

    De aici pleaca problema , cum pot rezolva? ca am scos asta si nu mai dadea errori dar nu se puneau pe sv casele/bizurile etc asa ca am bagato inapoi se puneau dar iar dadea warningurile alea!

     

    public LoadSystems()
    {
        new query[128];
        mysql_format(SQL, query, sizeof(query), "SELECT * FROM `houses`");
        mysql_tquery(SQL, query, "LoadProperty", "");

        mysql_format(SQL, query, sizeof(query), "SELECT * FROM `bizz`");
        mysql_tquery(SQL, query, "LoadBizz", "");

        LoadTurfs();
        for(new i = 0; i < sizeof(TurfInfo); i++)
        {
             Turfs = GangZoneCreateEx(TurfInfo[zMinX],TurfInfo[zMinY],TurfInfo[zMaxX],TurfInfo[zMaxY],TurfInfo[zID],1.0);
        }

        mysql_format(SQL, query, sizeof(query), "SELECT * FROM `factions`");
        mysql_tquery(SQL, query, "LoadDynamicFactions", "");

        mysql_format(SQL, query, sizeof(query), "SELECT * FROM `clans`");
        mysql_tquery(SQL, query, "LoadClanInfo", "");

        mysql_format(SQL, query, sizeof(query), "SELECT * FROM `cars`");
        mysql_tquery(SQL, query, "LoadCar", "");

        mysql_format(SQL, query, sizeof(query), "SELECT * FROM `stock`");
        mysql_tquery(SQL, query, "LoadStock", "");
    }

    Normal că nu mai primești erorii, server-ul nu mai acceseaza acele funcții

  5. incearca asta

    CMD:testtrailer(playerid,params[]) {
        if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)) && Trailer[playerid] == 0) return SCM(playerid,-1,"Nu ai o remorca!");
        SetTimerEx("AttachTrailer", 1000, 0, "i", playerid); 
        return true; }

  6. YCMD:wipehouses(playerid, params[], help) {
        new string[180], query[180];
        if(PlayerInfo[playerid][pAdmin] < 7) return SendClientMessage(playerid, COLOR_GREY, "Nu ai nivelul necesar de admin pentru a face asta.");
        for(new i = 1; i < sizeof(HouseInfo); i++)
        {
            foreach(Player, i) {
                if(IsPlayerConnected(i) && PlayerInfo[i][pHouse] == i) {
                    PlayerInfo[i][pHouse] = 999;
                    PlayerInfo[i][pRented] = -1;
                    Update(i, pHousex);
                }
            }
            HouseInfo[i][hHel] = 0;
            HouseInfo[i][hArm] = 0;
            HouseInfo[i][hLock] = 0;
            HouseInfo[i][hOwned] = 1;
            HouseInfo[i][hValue] = 0;
            format(query,sizeof(query),"UPDATE `houses` SET `Hel`='0',`Arm`='0',`Lockk`='0',`Owned`='1',`Owner`='The State',`Value`='0' WHERE `ID`='%d'",house);
            mysql_query(SQL,query);
            format(query,sizeof(query),"UPDATE users SET `House`='999' WHERE `name`='%s'",HouseInfo[i][hOwner]);
            mysql_query(SQL,query);    
            strmid(HouseInfo[i][hOwner], "The State", 0, strlen("The State"), 255);
            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
            format(string, sizeof(string), "* Casa %d a fost vandut cu succes la stat!", i);
            SendClientMessage(playerid, COLOR_YELLOW, string);
            UpdateLabel(1, i);
        }
        return 1;
    }
  7. YCMD:wherebonus(playerid, params[], help) {
    	new randomblablabal = random(3)+1;
    	switch(randomblablabal) {
    		case 1: SetPlayerCheckpoint(playerid, X, Y, Z, 5.0);
    		case 2:	SetPlayerCheckpoint(playerid, X, Y, Z, 5.0);
    		case 3:	SetPlayerCheckpoint(playerid, X, Y, Z, 5.0);
    		case 4:	SetPlayerCheckpoint(playerid, X, Y, Z, 5.0);
    	}
    	return true; }

     

  8. 	new Text:TDEditor_TD[1];
    	TDEditor_TD[0] = TextDrawCreate(633.374938, 423.333221, "MiritaXD_/_~r~test~n~~w~rpg.LocalHost.ro");
    TextDrawLetterSize(TDEditor_TD[0], 0.220624, 1.244167);
    TextDrawAlignment(TDEditor_TD[0], 3);
    TextDrawColor(TDEditor_TD[0], -1);
    TextDrawSetShadow(TDEditor_TD[0], 0);
    TextDrawSetOutline(TDEditor_TD[0], 1);
    TextDrawBackgroundColor(TDEditor_TD[0], 255);
    TextDrawFont(TDEditor_TD[0], 2);
    TextDrawSetProportional(TDEditor_TD[0], 1);
    TextDrawSetShadow(TDEditor_TD[0], 0);
    	//Player TextDraws: 
    	
    new PlayerText:TDEditor_PTD[MAX_PLAYERS][1];
    	TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 633.374938, 423.333221, "MiritaXD_/_~r~test~n~~w~rpg.LocalHost.ro");
    PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.220624, 1.244167);
    PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 3);
    PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -1);
    PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
    PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][0], 1);
    PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255);
    PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 2);
    PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 1);
    PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);

  9. Acum 1 oră, Mefistotel a spus:

    O prostie.

     

    On: Arata-mi cum ai definit dialogul

    :)) Ma gandeam la altceva =))) probabil el are DIALOG_RENTAIR 99 dupa are alt dialog cu id 100 si trebuie setat 101 :)

     

    Acum 2 ore, CosminZEQ a spus:

    image.thumb.png.aadba12b332ee3786d5f5971102a7653.png

    treci dialog urile pe enum ex:

    enum {

    DIALOG_LAPTE,

    DIALOG_APA,

    DIALOG_SIRET

    }

     

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