AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help System Levels ZP (https://forums.alliedmods.net/showthread.php?t=240303)

ZombeR3D 05-12-2014 12:33

Help System Levels ZP
 
This the the code of Stories:

Quote:

ublic ShowHUD(taskid)
{
static id, level
id = ID_SHOWHUD;
if(g_ammopacks[id] > 0)

if(g_ammopacks[id] > 0)
{
level = 1
}
else if (g_ammopacks[id] > 100)
{
level = 2
}
else if g_ammopacks[id] < 250)
{
level = 3
}
else if (g_ammopacks[id] < 500)
{
level = 4
}
else if (g_ammopacks[id] < 800)
{
level = 5
}
else if (g_ammopacks[id] < 1000)
{
static id
id = ID_SHOWHUD;
And when I compiled I get this error:

Quote:

"In this I get the error"
native_register_extra_item2("NightVision", g_extra_costs2[EXTRA_NVISION], ZP_TEAM_HUMAN)
native_register_extra_item2("T-Virus Antidote", g_extra_costs2[EXTRA_ANTIDOTE], ZP_TEAM_ZOMBIE)
native_register_extra_item2("Zombie Madness", g_extra_costs2[EXTRA_MADNESS], ZP_TEAM_ZOMBIE)
native_register_extra_item2("Infection Bomb", g_extra_costs2[EXTRA_INFBOMB], ZP_TEAM_ZOMBIE)

-------------------------------------------------
Error: Undefined symbol "native_register_extra_item2" on line 1053
Error: Undefined symbol "native_register_extra_item2" on line 1054
Error: Undefined symbol "native_register_extra_item2" on line 1055
Error: Undefined symbol "native_register_extra_item2" on line 1056
Error: Undefined symbol "native_register_extra_item2" on line 1062
Error: Undefined symbol "fm_set_kvd" on line 1385
Error: Undefined symbol "fm_set_kvd" on line 1386
Error: Undefined symbol "load_spawns" on line 1734
Error: Undefined symbol "fm_cs_get_user_team" on line 1857
Error: Undefined symbol "save_stats" on line 1863
Error: Undefined symbol "fnGetZombies" on line 1883
Error: Undefined symbol "PlaySound" on line 1891
Error: Undefined symbol "fnGetHumans" on line 1897
Error: Undefined symbol "PlaySound" on line 1905
Error: Undefined symbol "PlaySound" on line 1919
Warning: Loose indentation on line 2020
Error: Undefined symbol "fm_cs_get_user_team" on line 2027
Error: Undefined symbol "do_random_spawn" on line 2044
Error: Undefined symbol "fm_set_user_health" on line 2070
Error: Undefined symbol "fm_cs_get_user_team" on line 2074
Error: Undefined symbol "fm_cs_set_user_team" on line 2077
Error: Undefined symbol "fm_user_team_update" on line 2078
Error: Undefined symbol "fm_cs_set_user_model_index" on line 2092
Error: Undefined symbol "fm_cs_set_user_model_index" on line 2098
Error: Undefined symbol "fm_set_playermodel_ent" on line 2102
Error: Undefined symbol "fm_set_rendering" on line 2105
Error: Undefined symbol "fm_cs_get_user_model" on line 2110

26 Errors.

bat 05-21-2014 17:19

Re: Help System Levels ZP
 
First error you have about you call two time <static id
id = ID_SHOWHUD;
>. Maybe you not closed one function ?

-------------------------------------------------------------------

Post the code


All times are GMT -4. The time now is 09:35.

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