Salut am si eu o problema care mi-o tot afisa cand compilam va rog sa ma ajutati
Am nevoie ceva gen ca acesta :D
Poza: https://i.imgur.com/PrdPFUJ.png
Erorile ↓
\amxmodx\scripting\zombie_plague40.sma(9646) : error 001: expected token: ";", but found ")"
\amxmodx\scripting\zombie_plague40.sma(9646) : error 029: invalid expression, assumed zero
Sursa mai jos ↓
Cerere Plugin Edit ShowHudMSG
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
- Rainq
- Membru, skill +2
- Posts: 681
- Joined: 21 Jul 2015, 19:50
- Detinator Steam: Da
- CS Status: Retras
- Detinator server CS: zm.extreamcs.com
- SteamID: mrainq
- Reputatie: Fost super moderator
Fost detinator ZM.eXtreamCS.COM
Fost Membru Club eXtreamCS (trei luni) - Fond eXtream: 0
- Location: Bucharest
- Discord: manuraiders
- Has thanked: 29 times
- Been thanked: 51 times
- Contact:
Code: Select all
show_dhudmessage(ID_SHOWHUD, "[%L %s]^n[Health: %d] [%L %s] [Money: %d]^n[Level: %d] [Exp: %d]", id, "ZOMBIE_ATTRIB1", pev(ID_SHOWHUD, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, get_user_armor(id),zp_get_user_level(id),Percent[id]))
Code: Select all
public ShowHUD(taskid)
{
static id
id = ID_SHOWHUD;
// Player died?
if (!g_isalive[id])
{
// Get spectating target
id = pev(id, PEV_SPEC_TARGET)
// Target not alive
if (!g_isalive[id]) return;
}
// Format classname
static class[32], red, green, blue
if (g_zombie[id]) // zombies
{
red = 0
green = 250
blue = 0
if (g_nemesis[id])
formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_NEMESIS")
else
copy(class, charsmax(class), g_zombie_classname[id])
}
else // humans
{
red = 0
green = 255
blue = 0
if (g_survivor[id])
formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_SURVIVOR")
else
formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_HUMAN")
}
Percent[id] = 100.0 * float(zp_get_user_exp(id))/float(zp_get_exp_current(id))
// Spectating someone else?
if (id != ID_SHOWHUD)
{
// Show name, health, class, and ammo packs
set_hudmessage(255, 255, 255, HUD_SPECT_X, HUD_SPECT_Y, 0, 6.0, 1.1, 0.0, 0.0, -1)
ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "[%L %s]^n[Health: %d] [%L %s] [Money: %d]^n[Level: %d] [Exp: %d]", ID_SHOWHUD, "SPECTATING", g_playername[id], pev(id, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, zp_cs_get_user_money(id), zp_get_user_level(id),Percent[id])
}
else
{
// Show health, class and ammo packs
set_dhudmessage(red, green, blue, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0, -1)
show_dhudmessage(ID_SHOWHUD, "[%L %s]^n[Health: %d] [%L %s] [Money: %d]^n[Level: %d] [Exp: %d]", id, "ZOMBIE_ATTRIB1", pev(ID_SHOWHUD, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, get_user_armor(id),zp_get_user_level(id),Percent[id])
}
}