Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

/knife nie działa


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
14 odpowiedzi w tym temacie

#1 Pozdrawiam

    Zaawansowany

  • Użytkownik

Reputacja: -3
Nowy

  • Postów:100
  • Lokalizacja:Toruń
Offline

Napisano 21.01.2012 22:57

A więc trochę poprzerabiałem plugin z knife + moce na brak tych gravitek itp , ale niestety nie działa .
Prosił bym o rozwiązanie mojego problemu


#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <vault>
#include <fun>

#define PLUGIN "Knife Mod"
#define VERSION "1.0"
#define AUTHOR "spunko & Drako"
#define TASK_INTERVAL 4.0 
new knife_model[33]
new g_Menu
public plugin_init() {
   
    register_plugin(PLUGIN, VERSION, AUTHOR)
   
    register_event( "Damage", "event_damage", "be" )
    register_event("CurWeapon","CurWeapon","be","1=1")
   
    g_Menu = register_menuid("Knife Mod")
    register_menucmd(g_Menu, 1023, "knifemenu")
   
    register_clcmd("say /knife", "display_knife")
}
public plugin_precache() {
    precache_model("models/knife-mod/v_knife_pl.mdl")
    precache_model("models/knife-mod/v_tasak.mdl")
    precache_model("models/knife-mod/v_riddickblade.mdl")
    precache_model("models/knife-mod/v_brak")
    precache_model("models/v_knife.mdl")
    precache_model("models/p_knife.mdl")
}
public display_knife(id) {
    new menuBody[512]
    add(menuBody, 511, "\rKnife Mod\w^n^n")
    add(menuBody, 511, "1. Noz z flaga Polski^n")
    add(menuBody, 511, "2. Pseudo Tasak^n")
    add(menuBody, 511, "3. Riddick Blade^n")
    add(menuBody, 511, "4. Brak noza^n")
    add(menuBody, 511, "5. Domyslny noz^n")

    add(menuBody, 511, "0. Exit^n")
   
    new keys = ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<9 )
    show_menu(id, keys, menuBody, -1, "Knife Mod")
}
public knifemenu(id, key) {
    switch(key)
    {
            case 0: SetKnife(id , 4)
            case 1: SetKnife(id , 2)
            case 2: SetKnife(id , 3)
            default: return PLUGIN_HANDLED
    }
    return PLUGIN_HANDLED
}
public SetKnife(id , Knife) {
    knife_model[id] = Knife
   
    new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
    if ( Weapon != CSW_KNIFE )
            return PLUGIN_HANDLED
   
    new vModel[56],pModel[56]
   
    switch(Knife)
    {
            case 0: {
                    format(vModel,55,"models/knife-mod/v_knife_pl.mdl")
                    format(pModel,55,"models/p_knife.mdl")
            }
            case 1: {
                    format(vModel,55,"models/knife-mod/v_tasak.mdl")
                    format(pModel,55,"models/p_knife.mdl")
            }
            case 2: {
                    format(vModel,55,"models/knife-mod/v_riddickblade.mdl")
                    format(pModel,55,"models/p_knife.mdl")
            }
            case 3: {
                    format(vModel,55,"models/knife-mod/v_brak")
                    format(pModel,55,"models/p_knife.mdl") 
            }
            case 4: {
                    format(vModel,55,"models/knife-mod/v_knife")
                    format(pModel,55,"models/p_knife.mdl")
            }
    }
   
    entity_set_string(id, EV_SZ_viewmodel, vModel)
    entity_set_string(id, EV_SZ_weaponmodel, pModel)
   
    return PLUGIN_HANDLED; 
}
public CurWeapon(id)
    SetKnife(id, knife_model[id])

za pomoc dam ++ :D
  • +
  • -
  • 0

#2 Ojciec Dyrektor

    papa smerf.

  • Przyjaciel

Reputacja: 477
Wszechobecny

  • Postów:3 035
  • Imię:Paweł
  • Lokalizacja:Rabka-Zdrój
Offline

Napisano 22.01.2012 00:47

Automatyczna wiadomość


Ten temat został przeniesiony z forum:
AMX Mod XProblemy
do
Scripting AMXXProblemy


  • +
  • -
  • 0

#3 Pozdrawiam

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: -3
Nowy

  • Postów:100
  • Lokalizacja:Toruń
Offline

Napisano 22.01.2012 17:48

Bardzo proszę o odpowiedz .

A może plugin jest dobrze napisany tylko coś z amxx nie tak ?
  • +
  • -
  • 0

#4 atdirmaq

    Profesjonalista

  • Użytkownik

Reputacja: 60
Pomocny

  • Postów:194
  • GG:
  • Steam:steam
  • Imię:Sebastian
  • Lokalizacja:Otwock
Offline

Napisano 22.01.2012 18:06

public knifemenu(id, key) {
switch(key)
{
case 0: SetKnife(id , 4)
case 1: SetKnife(id , 2)
case 2: SetKnife(id , 3)
default: return PLUGIN_HANDLED
}
Case ma byc tyle ile nozy


case 0: SetKnife(id , 4)
case 1: SetKnife(id , 2)
case 2: SetKnife(id , 3)
case 3: SetKnife(id , 1)
case 4: SetKnife(id , 0)
default: return PLUGIN_HANDLED
}

Użytkownik atdirmaq edytował ten post 22.01.2012 18:07

  • +
  • -
  • 0

Ale fajny serw :o

Dołączona grafika


#5 Pozdrawiam

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: -3
Nowy

  • Postów:100
  • Lokalizacja:Toruń
Offline

Napisano 22.01.2012 20:43

Jak teraz to poprawiłem i wgrałem na serwer to serwer nie chce się włączyć .
  • +
  • -
  • 0

#6 atdirmaq

    Profesjonalista

  • Użytkownik

Reputacja: 60
Pomocny

  • Postów:194
  • GG:
  • Steam:steam
  • Imię:Sebastian
  • Lokalizacja:Otwock
Offline

Napisano 22.01.2012 20:52

Daj logi błędów.. pewno model źle wgrany albo coś
  • +
  • -
  • 0

Ale fajny serw :o

Dołączona grafika


#7 Pozdrawiam

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: -3
Nowy

  • Postów:100
  • Lokalizacja:Toruń
Offline

Napisano 22.01.2012 21:03

L 01/22/2012 - 17:27:18: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:27:18: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:27:18: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:27:18: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:27:18: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:27:18: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:27:18: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:27:18: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:27:18: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:42:20: Start of error session.
L 01/22/2012 - 17:42:20: Info (map "deathrun_bkm") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 17:42:20: Function "event_damage" was not found
L 01/22/2012 - 17:42:20: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 17:42:20: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:42:20: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:42:20: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:42:20: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:42:20: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:42:20: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:42:20: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:42:20: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:42:20: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:42:20: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:57:23: Start of error session.
L 01/22/2012 - 17:57:23: Info (map "deathrace_alley") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 17:57:23: Function "event_damage" was not found
L 01/22/2012 - 17:57:23: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 17:57:23: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:57:23: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:57:23: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:57:23: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:57:23: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:57:23: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:57:23: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 17:57:23: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 17:57:23: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 17:57:23: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:12:26: Start of error session.
L 01/22/2012 - 18:12:26: Info (map "deathrun_bajocero") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 18:12:26: Function "event_damage" was not found
L 01/22/2012 - 18:12:26: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 18:12:26: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:12:26: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:12:26: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:12:26: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:12:26: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:12:26: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:12:26: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:12:26: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:12:26: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:12:26: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:23:32: String formatted incorrectly - parameter 7 (total 6)
L 01/22/2012 - 18:23:32: [AMXX] Run time error 25 (plugin "amxbans_main.amxx") - debug not enabled!
L 01/22/2012 - 18:23:32: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:24:28: Start of error session.
L 01/22/2012 - 18:24:28: Info (map "deathrun_dust_cs") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 18:24:28: Function "event_damage" was not found
L 01/22/2012 - 18:24:28: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 18:24:28: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:24:29: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:24:29: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:24:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:24:29: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:24:29: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:24:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:24:29: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:24:29: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:24:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:24:47: String formatted incorrectly - parameter 7 (total 6)
L 01/22/2012 - 18:24:47: [AMXX] Run time error 25 (plugin "amxbans_main.amxx") - debug not enabled!
L 01/22/2012 - 18:24:47: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:39:31: Start of error session.
L 01/22/2012 - 18:39:31: Info (map "deathrun_evidens") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 18:39:31: Function "event_damage" was not found
L 01/22/2012 - 18:39:31: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 18:39:31: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:39:31: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:39:31: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:39:31: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:39:31: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:39:31: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:39:31: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:39:31: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:39:31: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:39:31: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:54:34: Start of error session.
L 01/22/2012 - 18:54:34: Info (map "deathrun_cube2") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 18:54:34: Function "event_damage" was not found
L 01/22/2012 - 18:54:34: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 18:54:34: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:54:34: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:54:34: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:54:34: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:54:34: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:54:34: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:54:34: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 18:54:34: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 18:54:34: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 18:54:34: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 19:04:57: Start of error session.
L 01/22/2012 - 19:04:57: Info (map "deathrun_oldtown") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 19:04:57: Function "event_damage" was not found
L 01/22/2012 - 19:04:57: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 19:04:57: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 19:04:58: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 19:04:58: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 19:04:58: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 19:04:58: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 19:04:58: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 19:04:58: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 19:04:58: [MySQL] Invalid info tuple handle: 0
L 01/22/2012 - 19:04:58: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled!
L 01/22/2012 - 19:04:58: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/22/2012 - 19:05:21: Start of error session.
L 01/22/2012 - 19:05:21: Info (map "deathrun_dust_old") (file "addons/amxmodx/logs/error_20120122.log")
L 01/22/2012 - 19:05:21: Function "event_damage" was not found
L 01/22/2012 - 19:05:21: [AMXX] Run time error 19 (plugin "knife.amxx") - debug not enabled!
L 01/22/2012 - 19:05:21: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

to jest ten kawałek z tamtych godzin
  • +
  • -
  • 0

#8 speedkill

    Godlike

  • Przyjaciel

Reputacja: 1 592
Godlike

  • Postów:2 733
  • GG:
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Prudnik
Offline

Napisano 23.01.2012 18:10

Usuń to
register_event( "Damage", "event_damage", "be" )

  • +
  • -
  • 0

If you can dream it, you can do it.


#9 Pozdrawiam

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: -3
Nowy

  • Postów:100
  • Lokalizacja:Toruń
Offline

Napisano 24.01.2012 14:53

Nadal to samo czyli:
1. wklejam plugin do folderu plugins wpisuje do plugins.ini
2.Zmieniam mapę
3. Serwer tag jakby się crashuje przy zmianie mapy i go wyłącza tak że się nie da go włączyć .
4.żeby serwer włączyć muszę wyłączyć plugin knife.amxx

Czy ten problem może wynikać ze złej wersji amxx ?
A jeżeli nie to z czego ?

Bardzo proszę o odpowiedz .
  • +
  • -
  • 0

#10 speedkill

    Godlike

  • Przyjaciel

Reputacja: 1 592
Godlike

  • Postów:2 733
  • GG:
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Prudnik
Offline

Napisano 24.01.2012 15:19

Pokaż błędy z konsoli serwera podczasu crasha
  • +
  • -
  • 0

If you can dream it, you can do it.


#11 Pozdrawiam

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: -3
Nowy

  • Postów:100
  • Lokalizacja:Toruń
Offline

Napisano 24.01.2012 16:10


Auto detecting CPU

Using Pentium II Optimised binary.

Auto-restarting the server on crash

Console initialized.

scandir failed:/home/servers/s20827/SAVE

scandir failed:/home/servers/s20827/./platform/SAVE

Protocol version 48

Exe version 1.1.2.6/Stdio (cstrike)

Exe build: 10:55:14 Jul 9 2010 (5006)

STEAM Auth Server

couldn't exec language.cfg

couldn't exec listip.cfg

Server IP address 79.133.192.45:27055

Metamod version 1.19p32 Copyright (c) 2001-2006 Will Day

Patch: Metamod-P (mm-p) v32 Copyright (c) 2004-2007 Jussi Kivilinna

Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.

This is free software, and you are welcome to redistribute it

under certain conditions; type `meta gpl' for details.



AMX Mod X version 1.8.1.3746 Copyright (c) 2004-2006 AMX Mod X Development Team

AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'.

This is free software and you are welcome to redistribute it under

certain conditions; type 'amxx gpl' for details.

stray key in process_key: item_getiteminfo 63

scandir failed:/home/servers/s20827/SAVE

scandir failed:/home/servers/s20827/./platform/SAVE

L 01/24/2012 - 16:08:17: -------- Mapchange to deathrun_projetocs2 --------

FATAL ERROR (shutting down): Mod_NumForName: models/knife-mod/v_brak not found


  • +
  • -
  • 0

#12 speedkill

    Godlike

  • Przyjaciel

Reputacja: 1 592
Godlike

  • Postów:2 733
  • GG:
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Prudnik
Offline

Napisano 24.01.2012 16:24

 precache_model("models/knife-mod/v_brak")
na
 precache_model("models/knife-mod/v_brak.mdl")
+ wgraj ten model do folderu knife-mod
  • +
  • -
  • 0

If you can dream it, you can do it.


#13 Pozdrawiam

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: -3
Nowy

  • Postów:100
  • Lokalizacja:Toruń
Offline

Napisano 24.01.2012 16:38

Nadal to samo .
ale zauważałem że ten plik jest w tym models ale się nie pobiera ludzą
  • +
  • -
  • 0

#14 GwynBleidD

    Godlike

  • Przyjaciel

Reputacja: 1 869
Godlike

  • Postów:3 066
  • Steam:steam
  • Lokalizacja:Przemyśl
Offline

Napisano 24.01.2012 16:53

Pokaż teraz co wyskakuje w konsoli przy crashu...
  • +
  • -
  • 0

NIE pomagam na PW. Nie trudź się, na zlecenia nie odpiszę... Od pomagania jest forum.
NIE zaglądam w tematy wysłane na PW. Jeśli są na forum to prędzej czy później je przeczytam. Jeśli mam co w nich odpisać, to odpiszę.
 
1988650.png?theme=dark


#15 Pozdrawiam

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: -3
Nowy

  • Postów:100
  • Lokalizacja:Toruń
Offline

Napisano 26.01.2012 18:24

Auto detecting CPU
Using Pentium II Optimised binary.
Auto-restarting the server on crash
Console initialized.
scandir failed:/home/servers/s20827/SAVE
scandir failed:/home/servers/s20827/./platform/SAVE
Protocol version 48
Exe version 1.1.2.6/Stdio (cstrike)
Exe build: 10:55:14 Jul 9 2010 (5006)
STEAM Auth Server
couldn't exec language.cfg
couldn't exec listip.cfg
Server IP address 79.133.192.45:27055
Metamod version 1.19p32 Copyright (c) 2001-2006 Will Day
Patch: Metamod-P (mm-p) v32 Copyright (c) 2004-2007 Jussi Kivilinna
Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `meta gpl' for details.

AMX Mod X version 1.8.1.3746 Copyright (c) 2004-2006 AMX Mod X Development Team
AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'.
This is free software and you are welcome to redistribute it under
certain conditions; type 'amxx gpl' for details.
stray key in process_key: item_getiteminfo 63
scandir failed:/home/servers/s20827/SAVE
scandir failed:/home/servers/s20827/./platform/SAVE
L 01/24/2012 - 17:20:57: -------- Mapchange to deathrun_projetocs2 --------
FATAL ERROR (shutting down): Mod_NumForName: models/knife-mod/v_brak,mdl not found

Dobra naprawiłem zamiast kropki byl przecinek w jednym miejscu ale jest teraz drugi problem

A więc przy wejściu na serwer od razu masz kose z flaga polski zamiast domyślna i nie działa komenda /knife

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <vault>
#include <fun>
#define PLUGIN "Knife Mod"
#define VERSION "1.0"
#define AUTHOR "spunko & Drako"
#define TASK_INTERVAL 4.0
new knife_model[33]
new g_Menu
public plugin_init() {
  
	register_plugin(PLUGIN, VERSION, AUTHOR)
  
  
	register_event("CurWeapon","CurWeapon","be","1=1")
  
	g_Menu = register_menuid("Knife Mod")
	register_menucmd(g_Menu, 1023, "knifemenu")
  
	register_clcmd("say /knife", "display_knife")
}
public plugin_precache() {
	precache_model("models/knife-mod/v_knife_pl.mdl")
	precache_model("models/knife-mod/v_tasak.mdl")
	precache_model("models/knife-mod/v_riddickblade.mdl")
	precache_model("models/knife-mod/v_brak.mdl")
	precache_model("models/v_knife.mdl")
	precache_model("models/p_knife.mdl")
}
public display_knife(id) {
	new menuBody[512]
	add(menuBody, 511, "\rKnife Mod\w^n^n")
	add(menuBody, 511, "1. Noz z flaga Polski^n")
	add(menuBody, 511, "2. Pseudo Tasak^n")
	add(menuBody, 511, "3. Riddick Blade^n")
	add(menuBody, 511, "4. Brak noza^n")
	add(menuBody, 511, "5. Domyslny noz^n")
	add(menuBody, 511, "0. Exit^n")
  
	new keys = ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<9 )
	show_menu(id, keys, menuBody, -1, "Knife Mod")
}
public knifemenu(id, key) {
	switch(key)
	{
			case 0: SetKnife(id , 4)
			case 1: SetKnife(id , 2)
			case 2: SetKnife(id , 3)
			case 3: SetKnife(id , 1)
			case 4: SetKnife(id , 0)
			default: return PLUGIN_HANDLED
	}
	return PLUGIN_HANDLED
}
public SetKnife(id , Knife) {
	knife_model[id] = Knife
  
	new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
	if ( Weapon != CSW_KNIFE )
			return PLUGIN_HANDLED
  
	new vModel[56],pModel[56]
  
	switch(Knife)
	{
			case 0: {
					format(vModel,55,"models/knife-mod/v_knife_pl.mdl")
					format(pModel,55,"models/p_knife.mdl")
			}
			case 1: {
					format(vModel,55,"models/knife-mod/v_tasak.mdl")
					format(pModel,55,"models/p_knife.mdl")
			}
			case 2: {
					format(vModel,55,"models/knife-mod/v_riddickblade.mdl")
					format(pModel,55,"models/p_knife.mdl")
			}
			case 3: {
					format(vModel,55,"models/knife-mod/v_brak")
					format(pModel,55,"models/p_knife.mdl")
			}
			case 4: {
					format(vModel,55,"models/knife-mod/v_knife")
					format(pModel,55,"models/p_knife.mdl")
			}
	}
  
	entity_set_string(id, EV_SZ_viewmodel, vModel)
	entity_set_string(id, EV_SZ_weaponmodel, pModel)
  
	return PLUGIN_HANDLED;
}
public CurWeapon(id)
	SetKnife(id, knife_model[id])

tak wygląda teraz plugin na serwie

o co chodzi powinno działać !!

Może jakis plugin blokuje ?

Użytkownik Pozdrawiam edytował ten post 25.01.2012 16:19

  • +
  • -
  • 0




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych