Jump to content

AlwaysGoLl

Membru
  • Posts

    89
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by AlwaysGoLl

  1. Acum 15 ore, AlexRap a spus:

    https://pastebin.com/Fcq218Ac ia vezi iti merge?

    A ta este facuta pe YCMD, a lui e pe ZCMD, deci trb asa

    CMD:createhouse(playerid, params[]) {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 6)
            {
                    new ivInt,Float:IntPos[3], inter,Float:pX,Float:pY,Float:pZ,string[128],query[500], text, sendername[25];
                    if(sscanf(params, "i",text)) return SendClientMessage(playerid, -1, "{AB0000}Usage: {FFFFFF}/createhouse (0 = small, 1 = medium, 2 = big)");
                    if(text >= 3) return SendClientMessage(playerid, COLOR_GREY, "Unknown Size.");
                    GetPlayerPos(playerid, pX, pY, pZ);
                    SetPVarFloat(playerid, "pHeX", pX);
                    SetPVarFloat(playerid, "pHeY", pY);
                    SetPVarFloat(playerid, "pHeZ", pZ);
                    if(text == 0)
                    {
                        ivInt = random(5);
                        if(ivInt == 0)IntPos[0] = 223.20, IntPos[1] = 1287.08, IntPos[2] = 1082.14, inter = 1;
                        else if(ivInt == 1)IntPos[0] = 2283.04, IntPos[1] = -1140.28, IntPos[2] = 1050.90, inter = 11;
                        else if(ivInt == 2)IntPos[0] = 446.90, IntPos[1] = 506.35, IntPos[2] = 1001.42, inter = 12;
                        else if(ivInt == 3)IntPos[0] = 328.05, IntPos[1] = 1477.73, IntPos[2] = 1084.44, inter = 15;
                        else if(ivInt == 4)IntPos[0] = 223.20, IntPos[1] = 1287.08, IntPos[2] = 1082.14, inter = 1;
                        else if(ivInt == 5)IntPos[0] = -42.59, IntPos[1] = 1405.47, IntPos[2] = 1084.43, inter = 8;
                    }
                    else if(text == 1)
                    {
                        ivInt = random(5)+6;
                        if(ivInt == 6)IntPos[0] = 235.34, IntPos[1] = 1186.68, IntPos[2] = 1080.26, inter = 3;
                        else if(ivInt == 7)IntPos[0] = 24.04, IntPos[1] = 1340.17, IntPos[2] = 1084.38, inter = 10;
                        else if(ivInt == 8)IntPos[0] = -283.44, IntPos[1] = 1470.93, IntPos[2] = 1084.38, inter = 15;
                        else if(ivInt == 9)IntPos[0] = -260.49, IntPos[1] = 1456.75, IntPos[2] = 1084.37, inter = 4;
                        else if(ivInt == 10)IntPos[0] = 377.15, IntPos[1] = 1417.41, IntPos[2] = 1081.33, inter = 15;
                    }
                    else if(text == 2)
                    {
                        ivInt = random(5)+11;
                        if(ivInt == 11)IntPos[0] = 2324.53, IntPos[1] = -1149.54, IntPos[2] = 1050.71, inter = 12;
                        else if(ivInt == 12)IntPos[0] = 1260.64, IntPos[1] = -785.37, IntPos[2] = 1091.91, inter = 5;
                        else if(ivInt == 13)IntPos[0] = 140.17, IntPos[1] = 1366.07, IntPos[2] = 1083.65, inter = 5;
                        else if(ivInt == 14)IntPos[0] = 234.19, IntPos[1] = 1063.73, IntPos[2] = 1084.21, inter = 6;
                        else if(ivInt == 15)IntPos[0] = 225.68, IntPos[1] = 1021.45, IntPos[2] = 1084.02, inter = 7;
                        else if(ivInt == 16)IntPos[0] = 226.30, IntPos[1] = 1114.24, IntPos[2] = 1080.99, inter = 5;
                    }
     
                    new i = housess+1;
                    mysql_format(SQL, query, sizeof(query), "INSERT INTO houses (Owner, Lockk, Hel, Arm, Level, Rentabil, Rent, Owned, Discription, Value, Takings) VALUES('AdmBot', '0', '0', '0', '10', '1', '500', '0', 'House', '10000000', '0')");
                    mysql_tquery(SQL, query, "", "");
     
                    HouseInfo[hID]                           = i;
                    HouseInfo[hEntrancex]                    = GetPVarFloat(playerid, "pHeX");
                    HouseInfo[hEntrancey]                    = GetPVarFloat(playerid, "pHeY");
                    HouseInfo[hEntrancez]                    = GetPVarFloat(playerid, "pHeZ");
                    HouseInfo[hExitx]                        = IntPos[0];
                    HouseInfo[hExity]                        = IntPos[1];
                    HouseInfo[hExitz]                        = IntPos[2];
                    format(HouseInfo[hOwner], 64, "The State");
                    format(HouseInfo[hDiscription], 64, "House");
                    HouseInfo[hValue]                        = 5000000;
                    HouseInfo[hHel]                          = 0;
                    HouseInfo[hInterior]                     = inter;
                    HouseInfo[hLock]                         = 0;
                    HouseInfo[hOwned]                        = 0;
                    HouseInfo[hRent]                         = 500;
                    HouseInfo[hRentabil]                     = 1;
                    HouseInfo[hTakings]                      = 0;
                    HouseInfo[hLevel]                        = 10;
                    HouseInfo[hVirtual]                      = housess+1;
     
                    mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `Entrancex`='%f',`Entrancey`='%f',`Entrancez`='%f',`Exitx`='%f',`Exity`='%f',`Exitz`='%f',`Interior`='%d',`Virtual`='%d',`Value`='%d',`Level`='%d' WHERE `ID`='%d'",HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez],HouseInfo[hExitx],HouseInfo[hExity],HouseInfo[hExitz],HouseInfo[hInterior],HouseInfo[hVirtual],HouseInfo[hValue],HouseInfo[hLevel],i);
                    mysql_tquery(SQL, query, "", "");
                    mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `Entrancex`='%f',`Entrancey`='%f',`Entrancez`='%f',`Exitx`='%f',`Exity`='%f',`Exitz`='%f',`Interior`='%d',`Virtual`='%d' WHERE `ID`='%d'", HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez], HouseInfo[hExitx], HouseInfo[hExity], HouseInfo[hExitz], HouseInfo[hInterior], HouseInfo[hVirtual], i);
                    mysql_tquery(SQL, query, "", "");
     
                    if(ivInt >= 0 && ivInt <=5)
                    {
                        mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `InteriorType` = 0  WHERE `ID`='%d'",i);
                        mysql_tquery(SQL,query,"","");
                        HouseInfo[hInteriorType] = 0;
                    }
                    else if(ivInt >= 6 && ivInt <=10)
                    {
                        mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `InteriorType` = 1  WHERE `ID`='%d'",i);
                        mysql_tquery(SQL,query,"","");
                        HouseInfo[hInteriorType] = 1;
                    }
                    else if(ivInt >= 11 && ivInt <=16)
                    {
                        mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `InteriorType` = 2  WHERE `ID`='%d'",i);
                        mysql_tquery(SQL,query,"","");
                        HouseInfo[hInteriorType] = 2;
                    }
                    OnPropTextdrawUpdate(1,i);
                    SetPlayerInterior(playerid, 0);
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerPos(playerid, HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez]);
                    housess++;
                    format(string,sizeof(string),"Succes: {FFFFFF}Casa %d a fost creata cu succes.",i);
                    SendClientMessage(playerid, COLOR_LIGHTGREEN3, string);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "({c40b0b}Admin Info{FFFFFF}) %s a creat o noua casa ID: %d.", sendername, i);
                    ABroadCast(COLOR_WHITE, string, 1);
            }
            else return SendClientMessage(playerid, COLOR_LIGHTGREEN3, AdminOnly);
        }
        return 1;

    }

     

  2. Acum 7 minute, Sebi wepos a spus:

    SA-MP Dedicated Server
    ----------------------
    v0.3.7-R2, (C)2005-2015 SA-MP Team


    Server Plugins
    --------------
     Loading plugin: crashdetect
      Failed.
     Loading plugin: sscanf
      Failed.
     Loading plugin: mysql
      Failed.
     Loading plugin: streamer
      Failed.
     Loading plugin: Whirlpool
      Failed.
     Loaded 0 plugins.


    Started server on port: 7777, with maxplayers: 100 lanmode is OFF.


    Filterscripts
    ---------------
      Loaded 0 filterscripts.

    Script[gamemodes/gmm.amx]: Run time error 19: "File or function is not found"
    Number of vehicle models: 0

    Descarca toate pluginurile!

  3. Acum 2 ore, K0hL a spus:

    C:\Users\Vlad\Desktop\Gamemode\gamemodes\BigZoneGM.pwn(20021) : warning 217: loose indentation
    C:\Users\Vlad\Desktop\Gamemode\gamemodes\BigZoneGM.pwn(20021) : error 029: invalid expression, assumed zero
    C:\Users\Vlad\Desktop\Gamemode\gamemodes\BigZoneGM.pwn(20022) : warning 217: loose indentation
    C:\Users\Vlad\Desktop\Gamemode\gamemodes\BigZoneGM.pwn(20022) : error 029: invalid expression, assumed zero
    C:\Users\Vlad\Desktop\Gamemode\gamemodes\BigZoneGM.pwn(20022) : warning 215: expression has no effect
    C:\Users\Vlad\Desktop\Gamemode\gamemodes\BigZoneGM.pwn(20022) : error 001: expected token: ";", but found ")"
    C:\Users\Vlad\Desktop\Gamemode\gamemodes\BigZoneGM.pwn(20022) : error 029: invalid expression, assumed zero
    C:\Users\Vlad\Desktop\Gamemode\gamemodes\BigZoneGM.pwn(20022) : fatal error 107: too many error messages on one line

     

    CMD:startquest(playerid, params[]) {
        if(!PlayerToPoint(5.0, playerid, 181.6313,-1868.3856,2.9981)) {
            SCM(playerid, -1, "{F03A3A}Summer Quest {FFFFFF} Ti-a fost setat un checkpoint catre locatia potrivita.");
            CP[playerid] = 53;
            SetPlayerCheckpoint(playerid, 181.6313,-1868.3856,2.9981, 1.0);
            return 1;
        }
        if(PlayerInfo[playerid][pBoatLic] == 0) return SCM(playerid, COLOR_GREEN, "Eroare: Ai nevoie de o licenta de navigare!");
        questVehicle = CreateVehicle(446, 199.6847, -1934.8583, -0.3829, 180.7395, -1, -1, 300);
        PutPlayerInVehicle(playerid, questVehicle, 0);
        return 1;
    }

    Mama... daca nici mura in gura nu stii sa faci... lasa-te..

     

    • Haha 1
  4. Acum 20 ore, Catalin212 a spus:


    ----------
    Loaded log file: "server_log.txt".
    ----------

    SA-MP Dedicated Server
    ----------------------
    v0.3.7-R2, (C)2005-2015 SA-MP Team

    filterscripts = ""  (string)

    Server Plugins
    --------------
     Loading plugin: crashdetect
      CrashDetect v4.16 is OK.
      Loaded.
     Loading plugin: streamer
      Failed.
     Loading plugin: sscanf


     ===============================

          sscanf plugin loaded.

             Version:  2.8.1

       (c) 2012 Alex "Y_Less" Cole

     ===============================

      Loaded.
     Loading plugin: Whirlpool

     ==================

      Whirlpool loaded

     ==================

      Loaded.
     Loading plugin: mysql
      Failed.
     Loaded 3 plugins.


    Started server on port: 7777, with maxplayers: 50 lanmode is OFF.


    Filterscripts
    ---------------
      Loaded 0 filterscripts.

    [debug] Run time error 19: "File or function is not found"
    [debug]  mysql_tquery
    [debug]  mysql_connect
    [debug]  mysql_errno
    [debug]  mysql_log
    [debug]  mysql_query
    [debug]  cache_get_row_count
    [debug]  cache_get_field_content_int
    [debug]  cache_delete
    [debug]  CreateDynamic3DTextLabel
    [debug]  CreateDynamicMapIcon
    [debug]  CreateDynamicPickup
    [debug]  CreateDynamicObject
    [debug]  SetDynamicObjectMaterial
    [debug]  orm_update
    [debug]  mysql_format
    [debug]  IsValidDynamicObject
    [debug]  mysql_pquery
    [debug]  EditDynamicObject
    [debug]  DestroyDynamicObject
    [debug]  AttachDynamicObjectToVehicle
    [debug]  SetDynamicObjectPos
    [debug]  SetDynamicObjectRot
    [debug]  orm_create
    [debug]  orm_addvar_int
    [debug]  orm_setkey
    [debug]  orm_addvar_string
    [debug]  orm_apply_cache
    [debug]  orm_addvar_float
    [debug]  cache_get_field_content
    [debug]  SetDynamicObjectMaterialText
    [debug]  DestroyDynamicMapIcon
    [debug]  orm_delete
    [debug]  DestroyDynamic3DTextLabel
    [debug]  IsValidDynamicMapIcon
    [debug]  GetDynamicObjectPos
    [debug]  MoveDynamicObject
    [debug]  DestroyDynamicPickup
    [debug]  orm_insert
    [debug]  cache_get_field_content_float
    [debug]  UpdateDynamic3DTextLabelText
    [debug]  cache_insert_id
    [debug]  GetDynamicObjectRot
    [debug]  mysql_stat
    [debug]  IsValidDynamicPickup
    [debug] Run time error 19: "File or function is not found"
    [debug]  mysql_tquery
    [debug]  mysql_connect
    [debug]  mysql_errno
    [debug]  mysql_log
    [debug]  mysql_query
    [debug]  cache_get_row_count
    [debug]  cache_get_field_content_int
    [debug]  cache_delete
    [debug]  CreateDynamic3DTextLabel
    [debug]  CreateDynamicMapIcon
    [debug]  CreateDynamicPickup
    [debug]  CreateDynamicObject
    [debug]  SetDynamicObjectMaterial
    [debug]  orm_update
    [debug]  mysql_format
    [debug]  IsValidDynamicObject
    [debug]  mysql_pquery
    [debug]  EditDynamicObject
    [debug]  DestroyDynamicObject
    [debug]  AttachDynamicObjectToVehicle
    [debug]  SetDynamicObjectPos
    [debug]  SetDynamicObjectRot
    [debug]  orm_create
    [debug]  orm_addvar_int
    [debug]  orm_setkey
    [debug]  orm_addvar_string
    [debug]  orm_apply_cache
    [debug]  orm_addvar_float
    [debug]  cache_get_field_content
    [debug]  SetDynamicObjectMaterialText
    [debug]  DestroyDynamicMapIcon
    [debug]  orm_delete
    [debug]  DestroyDynamic3DTextLabel
    [debug]  IsValidDynamicMapIcon
    [debug]  GetDynamicObjectPos
    [debug]  MoveDynamicObject
    [debug]  DestroyDynamicPickup
    [debug]  orm_insert
    [debug]  cache_get_field_content_float
    [debug]  UpdateDynamic3DTextLabelText
    [debug]  cache_insert_id
    [debug]  GetDynamicObjectRot
    [debug]  mysql_stat
    [debug]  IsValidDynamicPickup
    Script[gamemodes/GM.amx]: Run time error 19: "File or function is not found"
    Number of vehicle models: 0
     

     

     

     

    cum ar trebuii sa o rezolv ca nu prea le am....

    Salut! descarca pluginul mysql depe net

     

  5. Acum 2 minute, nuamasacv a spus:

    Daca am pe host, ce ar trebui sa pun la new new SERVER_HOSTSTATUS =???? Ca vad ca, cand ma conectez imi apare joining the game si dupa closed the connection, si am pus baza de date

    SERVER_HOSTSTATUS = NORMAL;

     

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