Raised This Month: $ Target: $400
 0% 

solved


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 03-10-2016 , 14:54   solved
Reply With Quote #1

Errors:

// D:\Games\ZPC Private Mods\Counter-Strike 1.6\cstrike\addons\amxmodx\scripting\ZombieWo rld.sma(1010 : error 017: undefined symbol "g_MsgSync2"
// D:\Games\ZPC Private Mods\Counter-Strike 1.6\cstrike\addons\amxmodx\scripting\ZombieWo rld.sma(10115) : error 017: undefined symbol "g_MsgSync2"

Here is teh code with the problems:

PHP Code:
// Show HUD Task
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], redgreenblue
    
    
if (g_zombie[id]) // zombies
    
{
        
red 250
        green 
250
        blue 
10
        
        
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 0
        green 
180
        blue 
255
        
        
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
            
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(25510255HUD_SPECT_XHUD_SPECT_Y16.01.10.00.0, -1)
        
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"%L %s^nHP: %d - %L %s - %L %d - %L %d"ID_SHOWHUD"SPECTATING"g_playername[id],
        
pev(idpev_health), ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[id], ID_SHOWHUD"ARMOR"pev(idpev_armorvalue))
    }
    else
    {
        
// Show health, class and ammo packs and armor
        
set_hudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.01.10.00.0, -1)
        
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"%L: %d - %L %s - %L %d - %L %d"id"ZOMBIE_ATTRIB1"pev(ID_SHOWHUDpev_health), ID_SHOWHUD"CLASS_CLASS",
        class, 
ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[ID_SHOWHUD], ID_SHOWHUD"ARMOR"pev(ID_SHOWHUDpev_armorvalue))
    }


Last edited by GlobalPlague; 03-12-2016 at 11:36.
GlobalPlague is offline
Kakarot47
Senior Member
Join Date: May 2015
Location: Pakistan
Old 03-11-2016 , 01:00   Re: undefined symbol "g_MsgSync2"
Reply With Quote #2

drop your zp mod script here ill fix it
__________________



AssasinSniperNightmare ModArmageddon ModApolacyps Mod
Kakarot47 is offline
Send a message via Skype™ to Kakarot47
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 03-11-2016 , 03:35   Re: undefined symbol "g_MsgSync2"
Reply With Quote #3

PHP Code:
new g_MsgSync2 
Then in plugin_init() add this:

PHP Code:
g_MsgSync2 CreateHudSyncObj() 
Krtola is offline
Send a message via Skype™ to Krtola
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 03-11-2016 , 13:02   Re: undefined symbol "g_MsgSync2"
Reply With Quote #4

Quote:
Originally Posted by Krtola View Post
PHP Code:
new g_MsgSync2 
Then in plugin_init() add this:

PHP Code:
g_MsgSync2 CreateHudSyncObj() 

new errors:

// D:\Games\ZPC Private Mods\Counter-Strike 1.6\cstrike\addons\amxmodx\scripting\ZombieWo rld.sma(1345) : error 017: undefined symbol "g_MsgSync2"
// D:\Games\ZPC Private Mods\Counter-Strike 1.6\cstrike\addons\amxmodx\scripting\ZombieWo rld.sma(1347) : warning 217: loose indentation

http://snag.gy/RuU02.jpg


Last edited by GlobalPlague; 03-11-2016 at 13:02.
GlobalPlague is offline
Kakarot47
Senior Member
Join Date: May 2015
Location: Pakistan
Old 03-12-2016 , 06:36   Re: undefined symbol "g_MsgSync2"
Reply With Quote #5

i told you to upload your sma newbie why did'nt you understand me
__________________



AssasinSniperNightmare ModArmageddon ModApolacyps Mod
Kakarot47 is offline
Send a message via Skype™ to Kakarot47
Reply



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 10:49.


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