Raised This Month: $51 Target: $400
 12% 

error 088: number of arguments does not match definition


Post New Thread Reply   
 
Thread Tools Display Modes
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 03-11-2022 , 16:12   Re: error 088: number of arguments does not match definition
Reply With Quote #21

Supermache, before i asked "Where is the problem", i already tried to solve the problem by deleting the segment you marked in red. However, deleting this segment of the code didn't work.

This is the HUD before i deleted "g_ammopacks[ID_SHOWHUD]" and replaced "%d" with "%s" - https://pasteboard.co/g8i3qpGJmcaW.png

This is the HUD after i deleted "g_ammopacks[ID_SHOWHUD]" and replaced "%d" with "%s" - https://pasteboard.co/EZkc8iz1ih4U.png

These are the codes i use:

PHP Code:
new szXPCommas16 ], szNextXPCommas16 ], szAPCommas16 ];
AddCommascrxranks_get_user_xpid ), szXPCommascharsmaxszXPCommas ) ); 
PHP Code:
set_dhudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.01.10.00.0)
show_dhudmessage(ID_SHOWHUD"%L: %s || %L %s || %L %s || %L %d^nXP: %s/%s | Level: %d/%d: %s"id"ZOMBIE_ATTRIB1"szHPCommasID_SHOWHUD"CLASS_CLASS",
class, 
ID_SHOWHUD"AMMO_PACKS1"ID_SHOWHUD"ARMOR"pev(ID_SHOWHUDpev_armorvalue), szXPCommasszNextXPCommascrxranks_get_user_level(id), crxranks_get_max_levels(), ranknameszAPCommas 
So, what else should be changed/deleted in order for the AdCommas function to work for the ammo packs, too?
GlobalPlague is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 03-11-2022 , 16:38   Re: error 088: number of arguments does not match definition
Reply With Quote #22

Quote:
Originally Posted by GlobalPlague View Post
Supermache, before i asked "Where is the problem", i already tried to solve the problem by deleting the segment you marked in red. However, deleting this segment of the code didn't work.

This is the HUD before i deleted "g_ammopacks[ID_SHOWHUD]" and replaced "%d" with "%s" - https://pasteboard.co/g8i3qpGJmcaW.png

This is the HUD after i deleted "g_ammopacks[ID_SHOWHUD]" and replaced "%d" with "%s" - https://pasteboard.co/EZkc8iz1ih4U.png

These are the codes i use:

PHP Code:
new szXPCommas16 ], szNextXPCommas16 ], szAPCommas16 ];
AddCommascrxranks_get_user_xpid ), szXPCommascharsmaxszXPCommas ) ); 
PHP Code:
set_dhudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.01.10.00.0)
show_dhudmessage(ID_SHOWHUD"%L: %s || %L %s || %L %s || %L %d^nXP: %s/%s | Level: %d/%d: %s"id"ZOMBIE_ATTRIB1"szHPCommasID_SHOWHUD"CLASS_CLASS",
class, 
ID_SHOWHUD"AMMO_PACKS1"ID_SHOWHUD"ARMOR"pev(ID_SHOWHUDpev_armorvalue), szXPCommasszNextXPCommascrxranks_get_user_level(id), crxranks_get_max_levels(), ranknameszAPCommas 
So, what else should be changed/deleted in order for the AdCommas function to work for the ammo packs, too?
PHP Code:
enum _:ValueCommas
{
    
Health,
    
Packs,
    
XP,
    
NextXP
}

new 
szCommasValueCommas ][ 16 ];

if (
id != ID_SHOWHUD)
{
    
AddCommaspev(idpev_health), szCommasHealth ], charsmaxszCommas[ ] ) );
    
AddCommasg_ammopacks[id], szCommasPacks ], charsmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_xpid ), szCommasXP ], charsmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_next_xpid ), szCommasNextXP ], charsmaxszCommas[ ] ) );
    
    
// Show name, health, class, and ammo packs and armor
    
set_dhudmessage(00138HUD_SPECT_XHUD_SPECT_Y16.01.10.00.0)
    
show_dhudmessage(ID_SHOWHUD"%L %s^nHP: %s - %L %s - %L %s - %L %d"ID_SHOWHUD"SPECTATING"g_playername[id],
    
szCommasHealth ], ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"szCommasPacks ], ID_SHOWHUD"ARMOR"pev(idpev_armorvalue))
}
else
{
    
AddCommaspevID_SHOWHUDpev_health ), szCommasHealth ], charsmaxszCommas[ ] ) );
    
AddCommasg_ammopacksID_SHOWHUD ], szCommasPacks ], charsmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_xpID_SHOWHUD ), szCommasXP ], charsmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_next_xpID_SHOWHUD ), szCommasNextXP ], charsmaxszCommas[ ] ) );

        
// Show health, class and ammo packs and armor
    
set_dhudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.01.10.00.0)
    
show_dhudmessage(ID_SHOWHUD"%L: %s - %L %s - %L %s - %L %d^nXP: %s/%s | Level: %d/%d: %s"id"ZOMBIE_ATTRIB1"szCommasHealth ], ID_SHOWHUD"CLASS_CLASS",
    class, 
ID_SHOWHUD"AMMO_PACKS1"szCommasPacks ], ID_SHOWHUD"ARMOR"pev(ID_SHOWHUDpev_armorvalue), szCommasXP ], szCommasNextXP ], mysystem_get_user_level(id), mysystem_get_max_levels(), ranknameszCommasPacks ] )

__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 03-11-2022 at 22:23.
Supremache is offline
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 03-11-2022 , 18:27   Re: error 088: number of arguments does not match definition
Reply With Quote #23

Quote:
Originally Posted by Supremache View Post
PHP Code:
enum _:ValueCommas
{
    
Health,
    
Packs,
    
XP,
    
NextXP,
}

new 
szCommasValueCommas ][ 16 ];

if (
id != ID_SHOWHUD)
{
    
AddCommaspev(idpev_health), szCommasHealth ], chardmaxszCommas[ ] ) );
    
AddCommasg_ammopacks[id], szCommasPacks ], chardmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_xpid ), szCommasXP ], chardmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_next_xpid ), szCommasNextXP ], chardmaxszCommas[ ] ) );
    
    
// Show name, health, class, and ammo packs and armor
    
set_dhudmessage(00138HUD_SPECT_XHUD_SPECT_Y16.01.10.00.0)
    
show_dhudmessage(ID_SHOWHUD"%L %s^nHP: %s - %L %s - %L %s - %L %d"ID_SHOWHUD"SPECTATING"g_playername[id],
    
szCommasHealth ], ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"szCommasPacks ], ID_SHOWHUD"ARMOR"pev(idpev_armorvalue))
}
else
{
    
AddCommaspevID_SHOWHUDpev_health ), szCommasHealth ], chardmaxszCommas[ ] ) );
    
AddCommasg_ammopacksID_SHOWHUD ], szCommasPacks ], chardmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_xpID_SHOWHUD ), szCommasXP ], chardmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_next_xpID_SHOWHUD ), szCommasNextXP ], chardmaxszCommas[ ] ) );
    

        
// Show health, class and ammo packs and armor
    
set_dhudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.01.10.00.0)
    
show_dhudmessage(ID_SHOWHUD"%L: %s - %L %s - %L %s - %L %d^nXP: %s/%s | Level: %d/%d: %s"id"ZOMBIE_ATTRIB1"szCommasHealth ], ID_SHOWHUD"CLASS_CLASS",
    class, 
ID_SHOWHUD"AMMO_PACKS1"szCommasPacks ], ID_SHOWHUD"ARMOR"pev(ID_SHOWHUDpev_armorvalue), szCommasXP ], szCommasNextXP ], mysystem_get_user_level(id), mysystem_get_max_levels(), ranknameszCommasPacks ] )

This code resulted in the following errors:

// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(883) : error 017: undefined symbol "native_register_extra_item2"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(884) : error 017: undefined symbol "native_register_extra_item2"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(885) : error 017: undefined symbol "native_register_extra_item2"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(886) : error 017: undefined symbol "native_register_extra_item2"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(892) : error 017: undefined symbol "native_register_extra_item2"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1309) : error 017: undefined symbol "fm_set_kvd"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1310) : error 017: undefined symbol "fm_set_kvd"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1757) : error 017: undefined symbol "load_spawns"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1892) : error 017: undefined symbol "fm_cs_get_user_team"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(189 : error 017: undefined symbol "save_stats"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1926) : error 017: undefined symbol "fnGetZombies"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1934) : error 017: undefined symbol "PlaySound"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1940) : error 017: undefined symbol "fnGetHumans"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(194 : error 017: undefined symbol "PlaySound"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1962) : error 017: undefined symbol "PlaySound"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1976) : error 017: undefined symbol "PlaySound"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2085) : error 017: undefined symbol "fm_cs_get_user_team"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2102) : error 017: undefined symbol "do_random_spawn"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(212 : error 017: undefined symbol "fm_set_user_health"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2145) : error 017: undefined symbol "fm_set_user_health"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2165) : error 017: undefined symbol "fm_set_user_health"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2169) : error 017: undefined symbol "fm_cs_get_user_team"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2172) : error 017: undefined symbol "fm_cs_set_user_team"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2173) : error 017: undefined symbol "fm_user_team_update"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2187) : error 017: undefined symbol "fm_cs_set_user_model_index"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2193) : error 017: undefined symbol "fm_cs_set_user_model_index"
GlobalPlague is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 03-11-2022 , 18:42   Re: error 088: number of arguments does not match definition
Reply With Quote #24

chardmax

Try it now xD
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 03-11-2022 , 19:06   Re: error 088: number of arguments does not match definition
Reply With Quote #25

Quote:
Originally Posted by Supremache View Post
chardmax

Try it now xD
It still doesn't work.

This is the code is use:

PHP Code:
enum _:ValueCommas
{
    
Health,
    
Packs,
    
XP,
    
NextXP,
}

new 
szCommasValueCommas ][ 16 ];

if (
id != ID_SHOWHUD)
{
    
AddCommaspev(idpev_health), szCommasHealth ], charmaxszCommas[ ] ) );
    
AddCommasg_ammopacks[id], szCommasPacks ], charmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_xpid ), szCommasXP ], charmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_next_xpid ), szCommasNextXP ], charmaxszCommas[ ] ) );
    
    
// Show name, health, class, and ammo packs and armor
    
set_dhudmessage(00138HUD_SPECT_XHUD_SPECT_Y16.01.10.00.0)
    
show_dhudmessage(ID_SHOWHUD"%L %s^nHP: %s - %L %s - %L %s - %L %d"ID_SHOWHUD"SPECTATING"g_playername[id],
    
szCommasHealth ], ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"szCommasPacks ], ID_SHOWHUD"ARMOR"pev(idpev_armorvalue))
}
else
{
    
AddCommaspevID_SHOWHUDpev_health ), szCommasHealth ], charmaxszCommas[ ] ) );
    
AddCommasg_ammopacksID_SHOWHUD ], szCommasPacks ], charmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_xpID_SHOWHUD ), szCommasXP ], charmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_next_xpID_SHOWHUD ), szCommasNextXP ], charmaxszCommas[ ] ) );
    

        
// Show health, class and ammo packs and armor
    
set_dhudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.01.10.00.0)
    
show_dhudmessage(ID_SHOWHUD"%L: %s - %L %s - %L %s - %L %d^nXP: %s/%s | Level: %d/%d: %s"id"ZOMBIE_ATTRIB1"szCommasHealth ], ID_SHOWHUD"CLASS_CLASS",
    class, 
ID_SHOWHUD"AMMO_PACKS1"szCommasPacks ], ID_SHOWHUD"ARMOR"pev(ID_SHOWHUDpev_armorvalue), szCommasXP ], szCommasNextXP ], crxranks_get_user_level(id), crxranks_get_max_levels(), ranknameszCommasPacks ] )

And I'm getting these errors when i try to compile the .sma file:

// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(876) : error 017: undefined symbol "native_register_extra_item2"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(877) : error 017: undefined symbol "native_register_extra_item2"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(87 : error 017: undefined symbol "native_register_extra_item2"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(879) : error 017: undefined symbol "native_register_extra_item2"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(885) : error 017: undefined symbol "native_register_extra_item2"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1302) : error 017: undefined symbol "fm_set_kvd"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1303) : error 017: undefined symbol "fm_set_kvd"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1750) : error 017: undefined symbol "load_spawns"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1885) : error 017: undefined symbol "fm_cs_get_user_team"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1891) : error 017: undefined symbol "save_stats"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1919) : error 017: undefined symbol "fnGetZombies"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1927) : error 017: undefined symbol "PlaySound"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1933) : error 017: undefined symbol "fnGetHumans"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1941) : error 017: undefined symbol "PlaySound"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1955) : error 017: undefined symbol "PlaySound"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(1969) : error 017: undefined symbol "PlaySound"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(207 : error 017: undefined symbol "fm_cs_get_user_team"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2095) : error 017: undefined symbol "do_random_spawn"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2121) : error 017: undefined symbol "fm_set_user_health"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(213 : error 017: undefined symbol "fm_set_user_health"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(215 : error 017: undefined symbol "fm_set_user_health"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2162) : error 017: undefined symbol "fm_cs_get_user_team"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2165) : error 017: undefined symbol "fm_cs_set_user_team"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2166) : error 017: undefined symbol "fm_user_team_update"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2180) : error 017: undefined symbol "fm_cs_set_user_model_index"
// C:\Mod\cstrike\addons\amxmodx\scripting\zombi e_plague_advance_v1-6-1.sma(2186) : error 017: undefined symbol "fm_cs_set_user_model_index"
GlobalPlague is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 03-11-2022 , 20:13   Re: error 088: number of arguments does not match definition
Reply With Quote #26

charsmax not charmax
I typed try it now so i mean check the previous post
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 03-14-2022 , 05:43   Re: error 088: number of arguments does not match definition
Reply With Quote #27

Quote:
Originally Posted by Supremache View Post
charsmax not charmax
I typed try it now so i mean check the previous post
It still doesn't work.

This is how the code looks:

PHP Code:
enum _:ValueCommas
{
    
Health,
    
Packs,
    
XP,
    
NextXP,
}

new 
szCommasValueCommas ][ 16 ];

if (
id != ID_SHOWHUD)
{
    
AddCommaspev(idpev_health), szCommasHealth ], charsmaxszCommas[ ] ) );
    
AddCommasg_ammopacks[id], szCommasPacks ], charsmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_xpid ), szCommasXP ], charsmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_next_xpid ), szCommasNextXP ], charsmaxszCommas[ ] ) );
    
    
// Show name, health, class, and ammo packs and armor
    
set_dhudmessage(00138HUD_SPECT_XHUD_SPECT_Y16.01.10.00.0)
    
show_dhudmessage(ID_SHOWHUD"%L %s^nHP: %s - %L %s - %L %s - %L %d"ID_SHOWHUD"SPECTATING"g_playername[id],
    
szCommasHealth ], ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"szCommasPacks ], ID_SHOWHUD"ARMOR"pev(idpev_armorvalue))
}
else
{
    
AddCommaspevID_SHOWHUDpev_health ), szCommasHealth ], charsmaxszCommas[ ] ) );
    
AddCommasg_ammopacksID_SHOWHUD ], szCommasPacks ], charsmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_xpID_SHOWHUD ), szCommasXP ], charsmaxszCommas[ ] ) );
    
AddCommascrxranks_get_user_next_xpID_SHOWHUD ), szCommasNextXP ], charsmaxszCommas[ ] ) );
    

        
// Show health, class and ammo packs and armor
    
set_dhudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.01.10.00.0)
    
show_dhudmessage(ID_SHOWHUD"%L: %s - %L %s - %L %s - %L %d^nXP: %s/%s | Level: %d/%d: %s"id"ZOMBIE_ATTRIB1"szCommasHealth ], ID_SHOWHUD"CLASS_CLASS",
    class, 
ID_SHOWHUD"AMMO_PACKS1"szCommasPacks ], ID_SHOWHUD"ARMOR"pev(ID_SHOWHUDpev_armorvalue), szCommasXP ], szCommasNextXP ], crxranks_get_user_level(id), crxranks_get_max_levels(), ranknameszCommasPacks ] )

GlobalPlague is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 03-14-2022 , 07:16   Re: error 088: number of arguments does not match definition
Reply With Quote #28

Quote:
Originally Posted by GlobalPlague View Post
It still doesn't work.

This is how the code looks:

[QUOTE ]enum _:ValueCommas
{
Health,
Packs,
XP,
NextXP,
}

new szCommas[ ValueCommas ][ 16 ];

if (id != ID_SHOWHUD)
{
AddCommas( pev(id, pev_health), szCommas[ Health ], charsmax( szCommas[ ] ) );
AddCommas( g_ammopacks[id], szCommas[ Packs ], charsmax( szCommas[ ] ) );
AddCommas( crxranks_get_user_xp( id ), szCommas[ XP ], charsmax( szCommas[ ] ) );
AddCommas( crxranks_get_user_next_xp( id ), szCommas[ NextXP ], charsmax( szCommas[ ] ) );

// Show name, health, class, and ammo packs and armor
set_dhudmessage(0, 0, 138, HUD_SPECT_X, HUD_SPECT_Y, 1, 6.0, 1.1, 0.0, 0.0)
show_dhudmessage(ID_SHOWHUD, "%L %s^nHP: %s - %L %s - %L %s - %L %d", ID_SHOWHUD, "SPECTATING", g_playername[id],
szCommas[ Health ], ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", szCommas[ Packs ], ID_SHOWHUD, "ARMOR", pev(id, pev_armorvalue))
}
else
{
AddCommas( pev( ID_SHOWHUD, pev_health ), szCommas[ Health ], charsmax( szCommas[ ] ) );
AddCommas( g_ammopacks[ ID_SHOWHUD ], szCommas[ Packs ], charsmax( szCommas[ ] ) );
AddCommas( crxranks_get_user_xp( ID_SHOWHUD ), szCommas[ XP ], charsmax( szCommas[ ] ) );
AddCommas( crxranks_get_user_next_xp( ID_SHOWHUD ), szCommas[ NextXP ], charsmax( szCommas[ ] ) );


// Show health, class and ammo packs and armor
set_dhudmessage(red, green, blue, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0)
show_dhudmessage(ID_SHOWHUD, "%L: %s - %L %s - %L %s - %L %d^nXP: %s/%s | Level: %d/%d: %s", id, "ZOMBIE_ATTRIB1", szCommas[ Health ], ID_SHOWHUD, "CLASS_CLASS",
class, ID_SHOWHUD, "AMMO_PACKS1", szCommas[ Packs ], ID_SHOWHUD, "ARMOR", pev(ID_SHOWHUD, pev_armorvalue), szCommas[ XP ], szCommas[ NextXP ], crxranks_get_user_level(id), crxranks_get_max_levels(), rankname, szCommas[ Packs ] )
}
Copy my code!!!
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 03-14-2022 at 07:17.
Supremache is offline
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 03-14-2022 , 09:40   Re: error 088: number of arguments does not match definition
Reply With Quote #29

Quote:
Originally Posted by Supremache View Post
Copy my code!!!
Problem solved. A few minutes ago i found the source of the errors. The errors were caused by remnants of older code for adding points, not commas.

Basically, all these errors were caused by the "add point" function which is very similar to AddCommas, but adds a point, instead of a comma.

You can't have a point and a comma at the same time - this is what caused the errors.

I simply forgot to clear the old "add point" code. Now, i cleared it, and everything works perfectly.

I used the AddCommas code in the way you told me to use it, and now it works.
GlobalPlague is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 03-14-2022 , 10:56   Re: error 088: number of arguments does not match definition
Reply With Quote #30

Finally xd
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
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 16:45.


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