Zplague
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Zplague Entrar

Seu portal de Zombie Plague no Brasil


description[Ajuda Aqui] Plugin dando erro Empty[Ajuda Aqui] Plugin dando erro

more_horiz
Hola dnv, queria saber se alguém consegue arrumar esse plugin aqui para mim?
ele está com um simples erro que eu não sei onde está, e queria saber se alguém consegue arrumar para mim :)



Código:

//RoundSound.amxx -by PaintLancer

#include <amxmodx>

public plugin_init()
{
  register_plugin("RoundSound","1.0","DZ_MTv")
  register_event("SendAudio", "tRound_Ganaro", "a", "2&%!MRAD_tRound_Ganaro")
  register_event("SendAudio", "ctRound_Ganaro", "a", "2&%!MRAD_ctRound_Ganaro") 
}

public t_win()
{
  new rand = random_num(0,8)

  client_cmd(0,"stopsound")

  switch(rand)
  {
    case 0: client_cmd(0,"spk rAz_music/tRound_Ganaro1)
    case 1: client_cmd(0,"spk rAz_music/tRound_Ganaro2")
    case 2: client_cmd(0,"spk rAz_music/tRound_Ganaro3")
    case 3: client_cmd(0,"spk rAz_music/tRound_Ganaro4")
    case 4: client_cmd(0,"spk rAz_music/tRound_Ganaro5")
    case 5: client_cmd(0,"spk rAz_music/tRound_Ganaro6")
    case 6: client_cmd(0,"spk rAz_music/tRound_Ganaro7")
    case 7: client_cmd(0,"spk rAz_music/tRound_Ganaro8")
    case 8: client_cmd(0,"spk rAz_music/tRound_Ganaro9")
  }

  return PLUGIN_HANDLED
}

public ct_win()
{
  new rand = random_num(0,10)

  client_cmd(0,"stopsound")

  switch(rand)
  {
    case 0: client_cmd(0,"spk rAz_music/ctRound_Ganaro")
    case 1: client_cmd(0,"spk rAz_music/ctRound_Ganaro2")
    case 2: client_cmd(0,"spk rAz_music/ctRound_Ganaro3")
    case 3 client_cmd(0,"spk rAz_music/ctRound_Ganaro23")
    case 4: client_cmd(0,"spk rAz_music/ctRound_Ganaro45")
    case 5: client_cmd(0,"spk rAz_music/ctRound_Ganaro24")
    case 6: client_cmd(0,"spk rAz_music/ctRound_Ganaro54")
    case 7: client_cmd(0,"spk rAz_music/ctRound_Ganaro651")
    case 8: client_cmd(0,"spk rAz_music/ctRound_Ganaro02")
    case 9: client_cmd(0,"spk rAz_music/ctRound_Ganaro3")
    case 10: client_cmd(0,"spk rAz_music/ctRound_Ganaro1")
  }

  return PLUGIN_HANDLED
}

public plugin_precache()
{
  precache_sound("rAz_music/ctRound_Ganaro.wav")
  precache_sound("rAz_music/ctRound_Ganaro2.wav")
  precache_sound("rAz_music/ctRound_Ganaro23.wav")
  precache_sound("rAz_music/ctRound_Ganaro45.wav")
  precache_sound("rAz_music/ctRound_Ganaro24.wav")
  precache_sound("rAz_music/ctRound_Ganaro54.wav")
  precache_sound("rAz_music/ctRound_Ganaro651.wav")
  precache_sound("rAz_music/ctRound_Ganaro02.wav")
  precache_sound("rAz_music/ctRound_Ganaro3.wav")
  precache_sound("rAz_music/ctRound_Ganaro1.wav")
  precache_sound("rAz_music/tRound_Ganaro1.wav")
  precache_sound("rAz_music/tRound_Ganaro2.wav")
  precache_sound("rAz_music/tRound_Ganaro3.wav")
  precache_sound("rAz_music/tRound_Ganaro4.wav")
  precache_sound("rAz_music/tRound_Ganaro5.wav")
  precache_sound("rAz_music/tRound_Ganaro6.wav")
  precache_sound("rAz_music/tRound_Ganaro7.wav")
  precache_sound("rAz_music/tRound_Ganaro8.wav")
  precache_sound("rAz_music/tRound_Ganaro9.wav")

  return PLUGIN_CONTINUE
}


Bem é isso ai que tem pra Hoje :)



Desculpe-me Pelo flood ADM

description[Ajuda Aqui] Plugin dando erro EmptyRe: [Ajuda Aqui] Plugin dando erro

more_horiz

Código:

//RoundSound.amxx -by PaintLancer

#include <amxmodx>

public plugin_init()
{
  register_plugin("RoundSound","1.0","DZ_MTv")
  register_event("SendAudio", "tRound_Ganaro", "a", "2&%!MRAD_tRound_Ganaro")
  register_event("SendAudio", "ctRound_Ganaro", "a", "2&%!MRAD_ctRound_Ganaro") 
}

public t_win()
{
  new rand = random_num(0,8)

  client_cmd(0,"stopsound")

  switch(rand)
  {
    case 0: client_cmd(0,"spk rAz_music/tRound_Ganaro1")
    case 1: client_cmd(0,"spk rAz_music/tRound_Ganaro2")
    case 2: client_cmd(0,"spk rAz_music/tRound_Ganaro3")
    case 3: client_cmd(0,"spk rAz_music/tRound_Ganaro4")
    case 4: client_cmd(0,"spk rAz_music/tRound_Ganaro5")
    case 5: client_cmd(0,"spk rAz_music/tRound_Ganaro6")
    case 6: client_cmd(0,"spk rAz_music/tRound_Ganaro7")
    case 7: client_cmd(0,"spk rAz_music/tRound_Ganaro8")
    case 8: client_cmd(0,"spk rAz_music/tRound_Ganaro9")
  }

  return PLUGIN_HANDLED
}

public ct_win()
{
  new rand = random_num(0,10)

  client_cmd(0,"stopsound")

  switch(rand)
  {
    case 0: client_cmd(0,"spk rAz_music/ctRound_Ganaro")
    case 1: client_cmd(0,"spk rAz_music/ctRound_Ganaro2")
    case 2: client_cmd(0,"spk rAz_music/ctRound_Ganaro3")
    case 3: client_cmd(0,"spk rAz_music/ctRound_Ganaro23")
    case 4: client_cmd(0,"spk rAz_music/ctRound_Ganaro45")
    case 5: client_cmd(0,"spk rAz_music/ctRound_Ganaro24")
    case 6: client_cmd(0,"spk rAz_music/ctRound_Ganaro54")
    case 7: client_cmd(0,"spk rAz_music/ctRound_Ganaro651")
    case 8: client_cmd(0,"spk rAz_music/ctRound_Ganaro02")
    case 9: client_cmd(0,"spk rAz_music/ctRound_Ganaro3")
    case 10: client_cmd(0,"spk rAz_music/ctRound_Ganaro1")
  }

  return PLUGIN_HANDLED
}

public plugin_precache()
{
  precache_sound("rAz_music/ctRound_Ganaro.wav")
  precache_sound("rAz_music/ctRound_Ganaro2.wav")
  precache_sound("rAz_music/ctRound_Ganaro23.wav")
  precache_sound("rAz_music/ctRound_Ganaro45.wav")
  precache_sound("rAz_music/ctRound_Ganaro24.wav")
  precache_sound("rAz_music/ctRound_Ganaro54.wav")
  precache_sound("rAz_music/ctRound_Ganaro651.wav")
  precache_sound("rAz_music/ctRound_Ganaro02.wav")
  precache_sound("rAz_music/ctRound_Ganaro3.wav")
  precache_sound("rAz_music/ctRound_Ganaro1.wav")
  precache_sound("rAz_music/tRound_Ganaro1.wav")
  precache_sound("rAz_music/tRound_Ganaro2.wav")
  precache_sound("rAz_music/tRound_Ganaro3.wav")
  precache_sound("rAz_music/tRound_Ganaro4.wav")
  precache_sound("rAz_music/tRound_Ganaro5.wav")
  precache_sound("rAz_music/tRound_Ganaro6.wav")
  precache_sound("rAz_music/tRound_Ganaro7.wav")
  precache_sound("rAz_music/tRound_Ganaro8.wav")
  precache_sound("rAz_music/tRound_Ganaro9.wav")

  return PLUGIN_CONTINUE
}
privacy_tip Permissões neste sub-fórum
Não podes responder a tópicos
power_settings_newInicie sessão para responder