hlmod.hu
https://hlmod.hu/

Warning: Loose indentation
https://hlmod.hu/viewtopic.php?f=10&t=5819
Oldal: 1 / 1

Szerző:  Bence98007 [2012.09.01. 14:45 ]
Hozzászólás témája:  Warning: Loose indentation

Üdv.

Valaki javítaná nekem ezt a kód részletet?
Kód:
public wave1(id) {
   
   if (is_user_bot(id))
{
   new players[32], pnum, tempid;
   get_players(players, pnum, "c");
   for( new i; i<pnum; i++ )
   {
   tempid = players[i];
   if(cs_get_user_team(id) == CS_TEAM_T)
   {
      set_user_health(tempid, 500)
      
   }
}
   set_dhudmessage(127, 255, 255, -1.0, 0.35, 0, 6.0, 3.0, 0.1, 15.0)
   show_dhudmessage(0, "..::Wave |1|::..^n=Sok sikert!=^n-[Teljesitesi Ido: 5:00]-")
   }

{
   new players[32], pnum, tempid, count;
   get_players(players, pnum, "ce", "TERRORIST");

for( new i; i<pnum; i++ )
{
   tempid = players[i];
   if(is_user_alive(tempid))
   {
      count++
   }
}
if(!count)
{
   set_dhudmessage(127, 255, 255, -1.0, -1.0, 0, 6.0, 3.0, 0.1, 5.0)
   show_dhudmessage(0, "..::Wave complete!::..^n=Szep munka!=")
   server_cmd("pb add 100")
   server_cmd("pb add 100")
   set_task(10.0, "wave2")
   visszaszamlalas()
}

}
}



public wave2(id) {
   
   
   /////////////////////////////////
   // Élet adása a Terror csaptnak//
   /////////////////////////////////
   if (is_user_bot(id))
{
   new players[32], pnum, tempid;
   get_players(players, pnum, "c");
   for( new i; i<pnum; i++ )
   {
   tempid = players[i];
   if(cs_get_user_team(id) == CS_TEAM_T)
   {
      set_user_health(tempid, 700)
   }
}
   set_dhudmessage(127, 255, 255, -1.0, 0.35, 0, 6.0, 3.0, 0.1, 15.0)
   show_dhudmessage(0, "..::Wave |2|::..^n=Sok sikert!=^n-[Teljesitesi Ido: 6:00]-")
   }

   //////////////////////////////////////////////////////
   //Ha meghalt a Terror csapat, kiírunk egy DHUD-ot...//
   //////////////////////////////////////////////////////
{
   new players[32], pnum, tempid, count;
   get_players(players, pnum, "ce", "TERRORIST");

for( new i; i<pnum; i++ )
{
   tempid = players[i];
   if(is_user_alive(tempid))
   {
      count++
   }
}
if(!count)
{
   set_dhudmessage(127, 255, 255, -1.0, -1.0, 0, 6.0, 3.0, 0.1, 5.0)
   show_dhudmessage(0, "..::Wave complete!::..^n=Szep munka!=")
   set_task(10.0, "wave3")
   visszaszamlalas()
   
}

}


Warn:

Warning: Loose indentation on line 183
Warning: Loose indentation on line 187
Warning: Loose indentation on line 239
Warning: Loose indentation on line 243


Ha ez nem lenne elég, posztolom az egész sma-t.

Szerző:  HunGamer [2012.09.01. 15:05 ]
Hozzászólás témája:  Re: Warning: Loose indentation

Az nem hiba. Annyi hogy rosszul tagoltad.

Szerző:  Bence98007 [2012.09.01. 16:23 ]
Hozzászólás témája:  Re: Warning: Loose indentation

értem. ki tudnád javítani légyszi?

Szerző:  kiki [2012.09.01. 17:25 ]
Hozzászólás témája:  Re: Warning: Loose indentation

Próbáld meg szerintem menni fog, s amx studionak is van ilyen funkciója!

Kép

Szerző:  Bence98007 [2012.09.01. 17:26 ]
Hozzászólás témája:  Re: Warning: Loose indentation

Jaja igen Kiki az lesz az! Megnézem :)

**EDIT:**

Na 1 sorra dobja már csak a hibát erre:

Kód:
{
   new players[32], pnum, tempid, count;
   get_players(players, pnum, "ce", "TERRORIST");


és az első sorban az a nyitóra írja

Szerző:  VirTuaL ~` [2012.09.01. 18:55 ]
Hozzászólás témája:  Re: Warning: Loose indentation

De ez hülyeség! Mi az h wave1(id)-et kinyitod,majd később bezárod,és megint kinyitod?xD

Szerző:  Bence98007 [2012.09.01. 19:28 ]
Hozzászólás témája:  Re: Warning: Loose indentation

VirTuaL ~` írta:
De ez hülyeség! Mi az h wave1(id)-et kinyitod,majd később bezárod,és megint kinyitod?xD

Lécci Virtual kijavítanád léciii :?

Szerző:  VirTuaL ~` [2012.09.01. 20:05 ]
Hozzászólás témája:  Re: Warning: Loose indentation

Egész sma-t posztold.De ma már nem csinálom meg,megyek itthonról.Majd holnap délután körül.

Szerző:  Metal [2012.09.03. 09:12 ]
Hozzászólás témája:  Re: Warning: Loose indentation

De most komolyan, ehhez segítséget kérsz? Nem tudod rendesen tördelni a kódot? :|

Szerző:  Bence98007 [2012.09.03. 13:50 ]
Hozzászólás témája:  Re: Warning: Loose indentation

Már rányomtam arra amit kiki mondott, most átnézem az egész kódomat, aztán megnézem hátha valahol elfelejtettem nyitást || zárást tenni.

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/