View Single Post
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 10-29-2006 , 23:07   Re: [miscstats.sma] Run time error 4: checkKills (line 607)
#4

Code:
  if (a > -1)
  {
   if (MultiKill)
   {
    new name[32]
    
    get_user_name(id, name, 31)
    set_hudmessage(255, 0, 100, 0.05, 0.50, 2, 0.02, 6.0, 0.01, 0.1, -1)
    
    if (a > 6)
     a = 6
    
    ShowSyncHudMsg(0, g_left_sync, g_MultiKillMsg[a], name, LANG_PLAYER, "WITH", g_multiKills[id][0], LANG_PLAYER, "KILLS", g_multiKills[id][1], LANG_PLAYER, "HS")
   }
   
   if (MultiKillSound)
   {
    new sound[24]
    format(sound, 23, "misc/%s", g_Sounds[a])
    play_sound(sound)
   }
  }
a>6 got err, change to
Code:
  if (a > -1)
  {
    if (a > 6)
     a = 6

   if (MultiKill)
   {
    new name[32]
    
    get_user_name(id, name, 31)
    set_hudmessage(255, 0, 100, 0.05, 0.50, 2, 0.02, 6.0, 0.01, 0.1, -1)
    ShowSyncHudMsg(0, g_left_sync, g_MultiKillMsg[a], name, LANG_PLAYER, "WITH", g_multiKills[id][0], LANG_PLAYER, "KILLS", g_multiKills[id][1], LANG_PLAYER, "HS")
   }
   
   if (MultiKillSound)
   {
    new sound[24]
    format(sound, 23, "misc/%s", g_Sounds[a])
    play_sound(sound)
   }
  }
__________________
QQ31537639
jopmako is offline
Send a message via MSN to jopmako