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
 

Senso1989 - zdjęcie

Senso1989

Rejestracja: 19.01.2015
Aktualnie: Nieaktywny
Poza forum Ostatnio: 15.08.2015 21:49
-----

Moje posty

W temacie: Problem z resetem odznak

17.05.2015 20:57

Rozwiązane.
http://amxx.pl/topic...graczom-na-bf2/

W temacie: Problem a AmxBansem

17.05.2015 18:37

Pobierz lepiej wersje 1.5.1

W temacie: Problem z PTB

23.03.2015 13:09

W sumie to za to odpowiada.

// team balancing actions
amx_ptb switch     on     
amx_ptb switchafter 2     
amx_ptb switchmin 4     // minimalna liczba graczy na mapie, kiedy zaczyna sie transferowanie
amx_ptb switchfreq 1     
amx_ptb playerfreq 7    
amx_ptb forceswitch 0     
amx_ptb deadonly     off     

W temacie: [KOSZ] zmiana w .sma

27.02.2015 22:44

Jest tak
 

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "He na czas"
#define VERSION "1.0"
#define AUTHOR "lisek"

new bool: costam=true
new hejcz[33]=0

public plugin_init() {
  register_plugin(PLUGIN, VERSION, AUTHOR)
  
  register_event("CurWeapon","switchweapon","be","1=1")
  register_logevent("runda",2,"1=Round_Start")
  register_logevent("func_round",2,"1=Round_End")
  register_event("TextMsg", "restart_round", "a", "2&#Game_will_restart_in")
}


public switchweapon(id)
{
  if(costam==true && is_user_alive(id))
  {
    new ammo, clip, weapon = get_user_weapon(id, ammo, clip)
    if(weapon==CSW_HEGRENADE && CSW_KNIFE){
    client_cmd(id, "lastinv") 
   client_print (id, print_chat, "He rzucamy 15 sekund po rozpoczeciu rundy !") 
    hejcz[id]=1

}
  }
}

public runda() set_task(08.0, "bul")
public bul(){
        costam=false
        for(new i=1; i<=32; i++){
                if(hejcz[i]==1 && is_user_connected(i))
                {
                        client_print (id, print_chat, "15 sekund minelo !") 
                }
        }
}
                        
        
public func_round()
{
        costam=true
        for(new i=1; i<=32; i++) hejcz[i]=0
}
                
public restart_round()
{
        costam=true
        for(new i=1; i<=32; i++) hejcz[i]=0
}

Plugin skompilowało, ale sa błędy:

 

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

blokhe.sma(28) : warning 217: loose indentation
blokhe.sma(29) : warning 217: loose indentation
blokhe.sma(41) : error 017: undefined symbol "id"
blokhe.sma(41) : warning 215: expression has no effect
blokhe.sma(41) : warning 215: expression has no effect
blokhe.sma(41) : error 001: expected token: ";", but found ")"
blokhe.sma(41) : error 029: invalid expression, assumed zero
blokhe.sma(41) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
Done.

 

W temacie: [KOSZ] zmiana w .sma

27.02.2015 22:25

Dodałem to  client_print(id, print_chat, "He rzucamy 15 sekund po rozpoczeciu rundy !)   
zamiast tego

set_hudmessage(255, 0, 0, 0.06, 0.59, 1, 6.0, 1.0)

show_hudmessage(id, "He rzucamy 15 sekund po rozpoczeciu rundy !")

oraz dodałem client_print(id, print_chat, "15 sekund minelo !)  
zamiast tego 

set_hudmessage(0, 0, 255, 0.06, 0.59, 1, 6.0, 1.0)

show_hudmessage(i, "15 sekund minelo !")

Przy kompilacji wywala błędy.

 

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

blokhe.sma(28) : error 037: invalid string (possibly non-terminated string)
blokhe.sma(41) : error 017: undefined symbol "id"
blokhe.sma(41) : warning 215: expression has no effect
blokhe.sma(41) : error 037: invalid string (possibly non-terminated string)

3 Errors.
Could not locate output file blokhe.amxx (compile failed).