Raised This Month: $ Target: $400
 0% 

What is wrong ????


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-10-2011 , 14:03   What is wrong ????
Reply With Quote #1

PHP Code:
 
public ShowHUD(taskid)
{
 static 
id
 id 
ID_SHOWHUD;
 
 
// Player died?
 
if (!g_isalive[id])
 {
  
// Get spectating target
  
id pev(idPEV_SPEC_TARGET)
 
  
// Target not alive
  
if (!g_isalive[id]) return;
 }
 
 
// Format classname
 
static class[32], redgreenbluehudxhudy
 
 
if (g_zombie[id]) // zombies
 
{
  
red 171
  green 
16
  blue 
16
  hudx 
get_pcvar_float(cvar_zombie_hud_x)
  
hudy get_pcvar_float(cvar_zombie_hud_y)
 
  if (
g_nemesis[id])
   
formatex(class, charsmax(class), "%L"ID_SHOWHUD"CLASS_NEMESIS")
  else if (
g_assassin[id])
   
formatex(class, charsmax(class), "%L"ID_SHOWHUD"CLASS_ASSASSIN")
  else
   
copy(class, charsmax(class), g_zombie_classname[id])
 }
 else 
// humans
 
{
  
red 2
  green 
105
  blue 
189
  hudx 
get_pcvar_float(cvar_human_hud_x)
  
hudy get_pcvar_float(cvar_human_hud_y)
 
  if (
g_survivor[id])
   
formatex(class, charsmax(class), "%L"ID_SHOWHUD"CLASS_SURVIVOR")
  else if (
g_sniper[id])
   
formatex(class, charsmax(class), "%L"ID_SHOWHUD"CLASS_SNIPER")
  else if (
g_wesker[id])
   
formatex(class, charsmax(class), "%L"ID_SHOWHUD"CLASS_WESKER")
  else
   
formatex(class, charsmax(class), "%L"ID_SHOWHUD"CLASS_HUMAN")
 }
 
 
// Spectating someone else?
 
if (id != ID_SHOWHUD)
 {
  
// Show name, health, class, and ammo packs and armor
  
set_hudmessage(106106106HUD_SPECT_XHUD_SPECT_Y16.01.10.00.0, -1)
  
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"%L %L %s^nHP: %d | %L %s | %L %d %L"ID_SHOWHUD"BAR_CODE1"ID_SHOWHUD"SPECTATING"g_playername[id],
  
pev(idpev_health), ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[id], ID_SHOWHUD"BAR_CODE2")
 }
 else
 {
  
// Show health, class and ammo packs and armor
  
set_hudmessage(redgreenbluehudxhudy06.01.10.00.0, -1)
  
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"%L %L: %d | %L %s | %L %d %L"ID_SHOWHUD"BAR_CODE1"id"ZOMBIE_ATTRIB1"pev(ID_SHOWHUDpev_health), ID_SHOWHUD"CLASS_CLASS",
  class, 
ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[ID_SHOWHUD], ID_SHOWHUD"BAR_CODE2")
 }

Something is wrong. I cant compile , get error : tag mismatch 12151 line.

Last edited by .Dare Devil.; 05-10-2011 at 14:05.
.Dare Devil. is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode