←  Problemy

AMXX.pl: Support AMX Mod X i SourceMod

»

Problem z diablo modem

  • +
  • -
jendrek - zdjęcie jendrek 22.10.2011

Mam problem z diablo modemmógł by ktos naprawic błedy

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

diablo.sma(1550) : warning 209: function "RoundStart" should return a value
diablo.sma(5082) : error 014: invalid statement; not in switch
diablo.sma(5082) : warning 215: expression has no effect
diablo.sma(5082) : error 001: expected token: ";", but found ":"
diablo.sma(5082) : error 029: invalid expression, assumed zero
diablo.sma(5082) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.




public RoundStart(){
    for (new i=0; i < 33; i++){
    if (player_class[i] == Demon && is_user_alive(i) && random_num(1,5)==1)
        {
        new CsTeams:team=cs_get_user_team(i)        

        if(team==CS_TEAM_CT)
        cs_set_user_team(i,CS_TEAM_T,CS_DONTCHANGE)
        if(team==CS_TEAM_T)
        cs_set_user_team(i,CS_TEAM_CT,CS_DONTCHANGE)
        ExecuteHam(Ham_Spawn,i)
        cs_set_user_team(i,team,CS_DONTCHANGE)
        return 0
}
    if(player_class[i] == Merial && !(task_exists (i))) check_medic(i)
    if(player_class[i] == Druid && !(task_exists (i))) check_medic2(i)
          }
    for (new i=0; i < 33; i++){
                
        if(player_class[i] == Wampir && player_item_id[i] == 0)
        {
            award_item(i,0)
        }
}
    for (new i=0; i < 33; i++){
                plus_obrazenia[i] = 0
        used_item[i] = false
        DemageTake1[i]=1
        count_jumps(i)
        give_knife(i)
        RemoveFlag(i,Flag_Rot) // to dodalem
        JumpsLeft[i]=JumpsMax[i]
        
        if(player_class[i] == Nekromanta) g_haskit[i]=1
        else g_haskit[i]=0
        
        golden_bulet[i]=0
        
        invisible_cast[i]=0
        ultra_armor[i]=0
        ilerazy[i]=0
        ilerazy1[i]=0
        lustrzany_pocisk[i]=0
        player_b_ninja[i]=0
                plus_obrazenia[i] = 0
        
        

        
        num_shild[i]=2+floatround(player_intelligence[i]/25.0,floatround_floor)
        
        set_renderchange(i)
        }
        for (new i=0; i < 33; i++){
        if(player_class[i]==Nekromanta)
            
                changeskin(i,0)
                 
        }        
            
    kill_all_entity("throwing_knife")
    
    Bot_Setup()        
    ghost_check = false
    check_class()
    use_addtofullpack = false
}



          case 121:
         {
            player_item_name[id] = "Powrot The Rocka"
            player_item_id[id] = 121
            player_b_awp[id] = random_num(1,2)    
            player_b_knifemaster[id] = random_num(5,10)
            player_b_silent[id] = 1
            
            show_hudmessage(id, "Znalazles przedmiot: %s :: ", player_item_name[id])
         }


przepraszam ale nie moge wrzucic do załacznika

tutaj cały kod Wklejka 131923930219078 - AMXX.pl: Support AMX Mod X
Użytkownik jendrek edytował ten post 22.10.2011 00:16
Odpowiedz

  • +
  • -
kavi76 - zdjęcie kavi76 22.10.2011

Jeśli możesz podaj .sma bo w tym kodzie nie zauważyłem błędów
Odpowiedz

  • +
  • -
jendrek - zdjęcie jendrek 22.10.2011

błedy

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Team

diablo.sma(1550) : warning 209: function "RoundStart" should return a value
diablo.sma(5082) : error 014: invalid statement; not in switch
diablo.sma(5082) : warning 215: expression has no effect
diablo.sma(5082) : error 001: expected token: ";", but found ":"
diablo.sma(5082) : error 029: invalid expression, assumed zero
diablo.sma(5082) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.

a tutaj cały kod http://amxx.pl/wklej...31923930219078/

pomoze ktos
Odpowiedz