Jump to content

CoSmInUuTzZ

Membru
  • Posts

    125
  • Joined

  • Last visited

    Never

Posts posted by CoSmInUuTzZ

  1. Salut , am si eu o problema , normal cand se da payday si esti lider la o mafie iti baga in seif 3k pe teritoriu de ex daca ai 7 teritorii iti baga 21 k , mie doar imi arata ca imi baga dar cand dau /fbalance imi arata 0...

    [pawn]    public SyncTime()

        {

        new string[64];

        new tmphour;

        new tmpminute;

        new tmpsecond;

        gettime(tmphour, tmpminute, tmpsecond);

        FixHour(tmphour);

        tmphour = shifthour;

        if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))

        {

        format(string, sizeof(string), "{a9c4e4}Acum este ora {ee5555}%d {a9c4e4}.",tmphour+1);

        BroadCast(COLOR_YELLOW,string);

        ghour = tmphour;

        PayDay();

        if(GangInfo[1][gHours] >= 1) GangInfo[1][gHours] --;

        if(GangInfo[2][gHours] >= 1) GangInfo[2][gHours] --;

        if(GangInfo[3][gHours] >= 1) GangInfo[3][gHours] --;

        if(GangInfo[4][gHours] >= 1) GangInfo[4][gHours] --;

        if(GangInfo[5][gHours] >= 1) GangInfo[5][gHours] --;

        if(GangInfo[6][gHours] >= 1) GangInfo[6][gHours] --;

        if(GangInfo[7][gHours] >= 1) GangInfo[7][gHours] --;

        if(GangInfo[8][gHours] >= 1) GangInfo[8][gHours] --;

        if(GangInfo[9][gHours] >= 1) GangInfo[9][gHours] --;

        if(GangInfo[10][gHours] >= 1) GangInfo[10][gHours] --;

        if(GangInfo[11][gHours] >= 1) GangInfo[11][gHours] --;

        if(GangInfo[12][gHours] >= 1) GangInfo[12][gHours] --;

        if(GangInfo[13][gHours] >= 1) GangInfo[13][gHours] --;

        if(GangInfo[14][gHours] >= 1) GangInfo[14][gHours] --;

        if(GangInfo[15][gHours] >= 1) GangInfo[15][gHours] --;

        if(GangInfo[16][gHours] >= 1) GangInfo[16][gHours] --;

        if(GangInfo[17][gHours] >= 1) GangInfo[17][gHours] --;

        if(GangInfo[18][gHours] >= 1) GangInfo[18][gHours] --;

        for(new b=5; b<=30; b++)

        {

          if(BizzInfo[bOwned] == 1) BizzInfo[bTill] += 500;

        }

        for(new n=0; n<sizeof(GangInfo); n++)

        {

        if(GangInfo[n][gFaction] != 0) DynamicFactions[GangInfo[n][gFaction]][fBank] += 1000;

        }

        if (realtime)

        {

        SetWorldTime(tmphour);

        }

        }

        }[/pawn]

    Uitati si synctime...

  2. Am rezolvat cu mysql dar acum imi mai arata [pawn]----------

    Loaded log file: "server_log.txt".

    ----------

    SA-MP Dedicated Server

    ----------------------

    v0.3z, ©2005-2014 SA-MP Team

    [04:43:41] filterscripts = ""  (string)

    [04:43:41]

    [04:43:41] Server Plugins

    [04:43:41] --------------

    [04:43:41]  Loading plugin: mysql.so

    [04:43:41]  >> plugin.mysql: R37 successfully loaded.

    [04:43:41]  Loaded.

    [04:43:41]  Loading plugin: sscanf.so

    [04:43:41]

    [04:43:41]  ===============================

    [04:43:41]      sscanf plugin loaded.   

    [04:43:41]          Version:  2.8.1       

    [04:43:41]    © 2012 Alex "Y_Less" Cole 

    [04:43:41]  ===============================

    [04:43:41]  Loaded.

    [04:43:41]  Loading plugin: streamer.so

    [04:43:41]

    *** Streamer Plugin v2.7 by Incognito loaded ***

    [04:43:41]  Loaded.

    [04:43:41]  Loading plugin: audio.so

    [04:43:41]

    *** Audio Plugin v0.5 R2 by Incognito loaded ***

    [04:43:41]  Loaded.

    [04:43:41]  Loaded 4 plugins.

    [04:43:41]

    [04:43:41] Ban list

    [04:43:41] --------

    [04:43:41]  Loaded: samp.ban

    [04:43:41]

    [04:43:41]

    [04:43:41] Filterscripts

    [04:43:41] ---------------

    [04:43:41]  Loaded 0 filterscripts.

    [04:43:41] *** Streamer Plugin: Warning: Obsolete or invalid native "Streamer_RegisterInterface" found (script might need to be recompiled with the latest include file)

    [04:43:41] *** Streamer Plugin: Warning: Obsolete or invalid native "Streamer_AddPlayer" found (script might need to be recompiled with the latest include file)

    [04:43:41] *** Streamer Plugin: Warning: Obsolete or invalid native "Streamer_RemovePlayer" found (script might need to be recompiled with the latest include file)

    [04:43:41] *** Streamer Plugin: Warning: Obsolete or invalid native "Streamer_VerifyPickup" found (script might need to be recompiled with the latest include file)

    [04:43:41] *** Streamer Plugin: Warning: Obsolete or invalid native "Streamer_VerifyCheckpoint" found (script might need to be recompiled with the latest include file)

    [04:43:41] *** Streamer Plugin: Warning: Include file version (unknown version) does not match plugin version (0x27002) (script might need to be recompiled with the latest include file)

    [04:43:41] Script[gamemodes/gtasarps.amx]: Run time error 19: "File or function is not found"

    [04:43:41] Number of vehicle models: 0

    [/pawn]

    La ce librarie te referi ?

    Acum imi da doar asta ..

    [pawn]

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

    SA-MP Dedicated Server

    ----------------------

    v0.3z, ©2005-2014 SA-MP Team

    [05:15:41] filterscripts = ""  (string)

    [05:15:41]

    [05:15:41] Server Plugins

    [05:15:41] --------------

    [05:15:41]  Loading plugin: mysql.so

    [05:15:41]  >> plugin.mysql: R37 successfully loaded.

    [05:15:41]  Loaded.

    [05:15:41]  Loading plugin: sscanf.so

    [05:15:41]

    [05:15:41]  ===============================

    [05:15:41]      sscanf plugin loaded.   

    [05:15:41]          Version:  2.8.1       

    [05:15:41]    © 2012 Alex "Y_Less" Cole 

    [05:15:41]  ===============================

    [05:15:41]  Loaded.

    [05:15:41]  Loading plugin: streamer.so

    [05:15:41]

    *** Streamer Plugin v2.6.1 by Incognito loaded ***

    [05:15:41]  Loaded.

    [05:15:41]  Loading plugin: audio.so

    [05:15:41]

    *** Audio Plugin v0.5 R2 by Incognito loaded ***

    [05:15:41]  Loaded.

    [05:15:41]  Loaded 4 plugins.

    [05:15:41]

    [05:15:41] Ban list

    [05:15:41] --------

    [05:15:41]  Loaded: samp.ban

    [05:15:41]

    [05:15:41]

    [05:15:41] Filterscripts

    [05:15:41] ---------------

    [05:15:41]  Loaded 0 filterscripts.

    [05:15:41] Script[gamemodes/gtasarps.amx]: Run time error 19: "File or function is not found"

    [05:15:41] Number of vehicle models: 0[/pawn]

    Up ,  cu crash detector imi da aceasta eroare [pawn]----------

    Loaded log file: "server_log.txt".

    ----------

    SA-MP Dedicated Server

    ----------------------

    v0.3z, ©2005-2014 SA-MP Team

    [06:07:59] filterscripts = ""  (string)

    [06:07:59]

    [06:07:59] Server Plugins

    [06:07:59] --------------

    [06:07:59]  Loading plugin: mysql.so

    [06:07:59]  Failed (/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by plugins/mysql.so))

    [06:07:59]  Loading plugin: sscanf.so

    [06:07:59]

    [06:07:59]  ===============================

    [06:07:59]      sscanf plugin loaded.   

    [06:07:59]          Version:  2.8.1       

    [06:07:59]    © 2012 Alex "Y_Less" Cole 

    [06:07:59]  ===============================

    [06:07:59]  Loaded.

    [06:07:59]  Loading plugin: streamer.so

    [06:07:59]

    *** Streamer Plugin v2.6.1 by Incognito loaded ***

    [06:07:59]  Loaded.

    [06:07:59]  Loading plugin: audio.so

    [06:07:59]

    *** Audio Plugin v0.5 R2 by Incognito loaded ***

    [06:07:59]  Loaded.

    [06:07:59]  Loading plugin: crashdetect.so

    [06:07:59]  CrashDetect v4.13 is OK.

    [06:07:59]  Loaded.

    [06:07:59]  Loaded 4 plugins.

    [06:07:59]

    [06:07:59] Ban list

    [06:07:59] --------

    [06:07:59]  Loaded: samp.ban

    [06:07:59]

    [06:07:59]

    [06:07:59] Filterscripts

    [06:07:59] ---------------

    [06:07:59]  Loaded 0 filterscripts.

    [06:07:59] [debug] Run time error 19: "File or function is not found"

    [06:07:59] [debug]  mysql_connect

    [06:07:59] [debug]  mysql_store_result

    [06:07:59] [debug]  mysql_num_rows

    [06:07:59] [debug]  mysql_free_result

    [06:07:59] [debug]  mysql_real_escape_string

    [06:07:59] [debug]  mysql_ping

    [06:07:59] [debug]  mysql_reconnect

    [06:07:59] [debug]  mysql_fetch_row_format

    [06:07:59] [debug]  mysql_debug

    [06:07:59] [debug]  mysql_retrieve_row

    [06:07:59] [debug]  mysql_fetch_field_row

    [06:07:59] [debug] Run time error 19: "File or function is not found"

    [06:07:59] [debug]  mysql_connect

    [06:07:59] [debug]  mysql_store_result

    [06:07:59] [debug]  mysql_num_rows

    [06:07:59] [debug]  mysql_free_result

    [06:07:59] [debug]  mysql_real_escape_string

    [06:07:59] [debug]  mysql_ping

    [06:07:59] [debug]  mysql_reconnect

    [06:07:59] [debug]  mysql_fetch_row_format

    [06:07:59] [debug]  mysql_debug

    [06:07:59] [debug]  mysql_retrieve_row

    [06:07:59] [debug]  mysql_fetch_field_row

    [06:07:59] Script[gamemodes/gtasarps.amx]: Run time error 19: "File or function is not found"

    [06:07:59] Number of vehicle models: 0[/pawn]

  3. Salut am si eu o problema imi tot da mode unknown cand deschid svr pe host iar la server_log imi apare :

    [pawn]

    ----------

    Loaded log file: "server_log.txt".

    ----------

    SA-MP Dedicated Server

    ----------------------

    v0.3z, ©2005-2014 SA-MP Team

    [18:25:06] filterscripts = ""  (string)

    [18:25:06]

    [18:25:06] Server Plugins

    [18:25:06] --------------

    [18:25:06]  Loading plugin: mysql.so

    [18:25:06]  Failed (/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by plugins/mysql.so))

    [18:25:06]  Loading plugin: sscanf.so

    [18:25:06]

    [18:25:06]  ===============================

    [18:25:06]      sscanf plugin loaded.   

    [18:25:06]          Version:  2.8.1       

    [18:25:06]    © 2012 Alex "Y_Less" Cole 

    [18:25:06]  ===============================

    [18:25:06]  Loaded.

    [18:25:06]  Loading plugin: streamer.so

    [18:25:06]

    *** Streamer Plugin v2.6.1 by Incognito loaded ***

    [18:25:06]  Loaded.

    [18:25:06]  Loading plugin: audio.so

    [18:25:06]

    *** Audio Plugin v0.5 R2 by Incognito loaded ***

    [18:25:06]  Loaded.

    [18:25:06]  Loaded 3 plugins.

    [18:25:06]

    [18:25:06] Ban list

    [18:25:06] --------

    [18:25:06]  Loaded: samp.ban

    [18:25:06]

    [18:25:06]

    [18:25:06] Filterscripts

    [18:25:06] ---------------

    [18:25:06]  Loaded 0 filterscripts.

    [18:25:06] *** Streamer Plugin: Warning: Obsolete or invalid native "Streamer_RegisterInterface" found (script might need to be recompiled with the latest include file)

    [18:25:06] *** Streamer Plugin: Warning: Obsolete or invalid native "Streamer_AddPlayer" found (script might need to be recompiled with the latest include file)

    [18:25:06] *** Streamer Plugin: Warning: Obsolete or invalid native "Streamer_RemovePlayer" found (script might need to be recompiled with the latest include file)

    [18:25:06] *** Streamer Plugin: Warning: Obsolete or invalid native "Streamer_VerifyPickup" found (script might need to be recompiled with the latest include file)

    [18:25:06] *** Streamer Plugin: Warning: Obsolete or invalid native "Streamer_VerifyCheckpoint" found (script might need to be recompiled with the latest include file)

    [18:25:06] *** Streamer Plugin: Warning: Include file version (unknown version) does not match plugin version (0x26105) (script might need to be recompiled with the latest include file)

    [18:25:06] Script[gamemodes/gtasarps.amx]: Run time error 19: "File or function is not found"

    [18:25:06] Number of vehicle models: 0

    [/pawn]

  4. [pawn]public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)

    {

    if(Tazer[playerid] == 1 && GetPlayerWeapon(playerid) == TAZE_WEAPON)

    {

        new Float:health,losehp;

        GetPlayerHealth(damagedid,health);

        losehp = TAZE_LOSEHP;

        if(Tazed[damagedid] == 1) return 1;

        new Float:x, Float:y, Float:z;

        GetPlayerPos(damagedid, x, y, z);

        ClearAnimations(damagedid);

        ApplyAnimation(damagedid,"PED","KO_skid_front",4.1,0,1,1,1,0);

        //Spark[damagedid] = CreateObject(TAZE_SPARK, x, y, z-3, 0, 0, 0);

        //SetTimerEx("DestroySpark", TAZE_DESTROY, 0, "i", damagedid);

        SetTimerEx("TazedRemove", TAZE_TIMER, 0, "i", damagedid);

        TogglePlayerControllable(damagedid, 0);

        Tazed[damagedid] = 1;

        if(losehp) {} else SetPlayerHealth(damagedid, health+amount);

    }

    return 1;

    }

    [/pawn]

    Aici o mai am odata .

  5. [pawn]public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid) {

        if(damagedid == INVALID_PLAYER_ID || !CheckFireArm(GetPlayerWeapon(playerid)) || GetPlayerTargetPlayer(playerid) != INVALID_PLAYER_ID) return 1;

        new count = GetPVarInt(playerid, "aimcount"), ticks = GetPVarInt(playerid, "aimtick"), currtick = GetTickCount();

        if(currtick - ticks <= 10000 && count + 1 >= MAX_AIM_TICKS) {

            new msg[144], name[MAX_PLAYER_NAME];

            GetPlayerName(playerid, name, MAX_PLAYER_NAME);

            format(msg, 144, "%s[%i] a primit kick pentru suspectarea in folosirea Aim / Joypad.", name, playerid);

            SendClientMessageToAll(-1, msg);

            Kick(playerid); // acordam kick cheaterului

            // Atentie! Daca veti dori sa schimbati kick intr-o alta sanctiune (de exemplu: un simplu mesaj) — adaugati aici stergerea "PVAR"-urilor si anularea variabilei "count" (ca si in codul operatorului "else if" de mai jos)

        }

        else if(currtick - ticks > 10000) {

            DeletePVar(playerid, "aimcount");

            DeletePVar(playerid, "aimtick");

            count = 0;

            currtick = GetTickCount();

        }

        SetPVarInt(playerid, "aimcount", count + 1);

        SetPVarInt(playerid, "aimtick", currtick);

        return 1;

    }

    CheckFireArm(weaponid) {

        switch(weaponid) {

            case 16..39, 41..43: return 1;

            default: return 0;

        }

        return 0;

    }[/pawn]

  6. Salut , as vrea sa imi deschid si eu un svr de SA-MP si mai intai asa vrea sa il testez in pc dar are baza de date si nu merge am luat xampp si navicat dar nu stiu lucra asa bine in ele daca ma puteti ajuta cu un tutorial :)

    Multumesc anticipat !

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