hlmod.hu

Magyar Half-Life Mód közösség!
Pontos idő: 2024.06.04. 05:53



Jelenlévő felhasználók

Jelenleg 212 felhasználó van jelen :: 0 regisztrált, 0 rejtett és 212 vendég

A legtöbb felhasználó (1565 fő) 2020.11.21. 11:26-kor tartózkodott itt.

Regisztrált felhasználók: nincs regisztrált felhasználó az elmúlt 5 percben aktív felhasználók alapján

Utoljára aktív
Ahhoz hogy lásd ki volt utoljára aktív, be kell jelentkezned.



Az oldal teljeskörű
használatához regisztrálj.

Regisztráció

Kereső


Új téma nyitása  Hozzászólás a témához  [ 2 hozzászólás ] 
Szerző Üzenet
 Hozzászólás témája: Autómata felvevő STOCK hiba!
HozzászólásElküldve: 2016.10.23. 16:11 
Offline
Beavatott
Avatar

Csatlakozott: 2015.12.27. 11:47
Hozzászólások: 88
Megköszönt másnak: 9 alkalommal
Sziasztok valaki ebben a pluginba kijavitja a hibát? aztr akarom hogy a langba tudjak zölden irni! (!g stb)
Előre is köszönöm
AMX Mod X Compiler 1.8.3-manual
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Modified for www.Freakz.ro / amx.freakz.ro

amx_demorecorder.sma(70) : warning 217: loose indentation
amx_demorecorder.sma(76) : error 001: expected token: ";", but found "static"
amx_demorecorder.sma(77) : error 001: expected token: ";", but found "-identifier-"
amx_demorecorder.sma(79) : error 001: expected token: ";", but found "-identifier-"
amx_demorecorder.sma(80) : error 001: expected token: ";", but found "-identifier-"
amx_demorecorder.sma(81) : error 001: expected token: ";", but found "-identifier-"
amx_demorecorder.sma(83) : error 001: expected token: ";", but found "if"
amx_demorecorder.sma(84) : error 001: expected token: ";", but found "{"
amx_demorecorder.sma(90) : error 001: expected token: ";", but found "-identifier-"
amx_demorecorder.sma(91) : error 001: expected token: ";", but found "-identifier-"
amx_demorecorder.sma(92) : error 001: expected token: ";", but found "-identifier-"
amx_demorecorder.sma(93) : error 001: expected token: ";", but found "}"
amx_demorecorder.sma(97) : error 001: expected token: ";", but found "}"

12 Errors.
Compilarea failed!

  1. /****************************************/
  2. /*                  */
  3. /*  Auto Demo Recorder      */
  4. /*  by IzI              */
  5. /*                  */
  6. /****************************************/
  7.  
  8. #include <amxmodx>
  9. #pragma semicolon 1
  10.  
  11. new g_Toggle, g_DMod, g_UseNI, g_RStartAfter, g_DemoName, g_DemoNamePrefix;
  12.  
  13. public plugin_init() {
  14.     register_plugin( "Auto Demo Recorder", "1.5", "IzI" );
  15.     g_Toggle        = register_cvar( "amx_demo",        "1" );
  16.     g_DMod          = register_cvar( "amx_demo_mode",   "0" );
  17.     g_UseNI         = register_cvar( "amx_demo_steamid",    "0" );
  18.     g_RStartAfter       = register_cvar( "amx_demo_rectime",    "15" ); // If it is less than 5, it will automatically set to 5, but willn't apply the changes to the console. I recoment to use default settings.
  19.     g_DemoName      = register_cvar( "amx_demo_name",   "Autorecorded demo" );
  20.     g_DemoNamePrefix    = register_cvar( "amx_demo_prefix", "FlyBoys" );
  21.     register_dictionary( "demorecorder.txt" );
  22. }
  23.  
  24. public client_putinserver( id ) {
  25.     if( get_pcvar_num( g_Toggle ) ) {
  26.         new Float:delay = get_pcvar_float( g_RStartAfter );
  27.         if( delay < 5 )
  28.             set_pcvar_float( g_RStartAfter, ( delay = 5.0 ) );
  29.         set_task( delay, "Record", id );
  30.     }
  31. }
  32.  
  33. public Record( id ) {
  34.     if( !is_user_connected( id ) || get_pcvar_num( g_Toggle ) != 1 )
  35.         return;
  36.  
  37.     // Getting time, client SteamID, server's name, server's ip with port.
  38.     new szSName[128], szINamePrefix[64], szTimedata[9];
  39.     new iUseIN = get_pcvar_num( g_UseNI );
  40.     new iDMod = get_pcvar_num( g_DMod );
  41.     get_pcvar_string( g_DemoNamePrefix, szINamePrefix, 63 );
  42.     get_time ( "%H:%M:%S", szTimedata, 8 );
  43.  
  44.     switch( iDMod ) {
  45.         case 0: get_pcvar_string( g_DemoName, szSName, 127 );
  46.         case 1: get_user_ip( 0, szSName, 127, 0 );
  47.         case 2: get_user_name( 0, szSName, 127 );
  48.     }
  49.  
  50.     if( iUseIN ) {
  51.         new szCID[32];
  52.         get_user_authid( id, szCID, 31 );
  53.         format( szSName, 127, "[%s]%s", szCID, szSName );
  54.     }
  55.  
  56.     // Replacing signs.
  57.     replace_all( szSName, 127, ":", "_" );
  58.     replace_all( szSName, 127, ".", "_" );
  59.     replace_all( szSName, 127, "*", "_" );
  60.     replace_all( szSName, 127, "/", "_" );
  61.     replace_all( szSName, 127, "|", "_" );
  62.     replace_all( szSName, 127, "\", "_" );
  63.     replace_all( szSName, 127, "?", "_" );
  64.     replace_all( szSName, 127, ">", "_" );
  65.     replace_all( szSName, 127, "<", "_" );
  66.     replace_all( szSName, 127, " ", "_" );
  67.  
  68.     // Displaying messages.
  69.     client_cmd( id, "stop; record ^"%s^"", szSName );
  70.      print_color(id,"[%s] %L ^"%s.dem^"", szINamePrefix, LANG_PLAYER, "RECORDINGIN", szSName );
  71.      print_color(id,"[%s] %L", szINamePrefix, LANG_PLAYER, "RECORDINGAT", szTimedata );
  72. }
  73. stock print_color(const id, const input[], any:...)
  74. {
  75.        new count = 1, players[32]
  76.        static msg[191]
  77.        vformat(msg, 190, input, 3)
  78.  
  79.        replace_all(msg, 190, "!g", "^4")
  80.        replace_all(msg, 190, "!y", "^1")
  81.        replace_all(msg, 190, "!t", "^3")    
  82.  
  83.        if (id) players[0] = id; else get_players(players, count, "ch")
  84.        {
  85.                for (new i = 0; i < count; i++)
  86.                {
  87.                        if (is_user_connected(players[i]))
  88.                        {
  89.                                message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  90.                                write_byte(players[i])
  91.                                write_string(msg)
  92.                                message_end()
  93.                        }
  94.                }
  95.        }
  96.        return PLUGIN_HANDLED
  97. }

_________________
Gyertek fel!!
Kép


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Autómata felvevő STOCK hiba!
HozzászólásElküldve: 2017.12.25. 14:05 
Offline
Beavatott
Avatar

Csatlakozott: 2017.12.25. 01:06
Hozzászólások: 96
Megköszönt másnak: 7 alkalommal
Megköszönték neki: 19 alkalommal
Szia.Használd ezt.


Csatolmányok:
demofelvevo.sma [1.42 KiB]
Letöltve 51 alkalommal.

_________________
[steam]veteranfiatal[/steam]
Hozzászólás jelentése
Vissza a tetejére
   
Hozzászólások megjelenítése:  Rendezés  
Új téma nyitása  Hozzászólás a témához  [ 2 hozzászólás ] 


Ki van itt

Jelenlévő fórumozók: nincs regisztrált felhasználó valamint 10 vendég


Nyithatsz új témákat ebben a fórumban.
Válaszolhatsz egy témára ebben a fórumban.
Nem szerkesztheted a hozzászólásaidat ebben a fórumban.
Nem törölheted a hozzászólásaidat ebben a fórumban.
Nem küldhetsz csatolmányokat ebben a fórumban.

Keresés:
Ugrás:  
Powered by phpBB® Forum Software © phpBB Limited
Magyar fordítás © Magyar phpBB Közösség
Portal: Kiss Portal Extension © Michael O'Toole