Hi AM users and staff, i have tryied to reconvert
Zombie XP V0.8 by redomina8 for ZP 5.0 version, and i have succeded with forwards / natives and everything it works flawessly from my tests , but still it gives me a warning when i'm compiling it don't know why , here is the code
PHP Code:
public native_register_zombie_class ( const name [ ], const info [ ], const model [ ], const clawmodel [ ], hp, speed, Float:gravity, Float:knockback, level )
{
// Dont return -1, we wil get lots of server window print errors from the plugins
if ( get_pcvar_num ( cvar_removezombie ) == 2)
return 0;
// Bugfix for loading zombies
loadedZombies = true;
// Strings passed byref
param_convert ( 1 );
param_convert ( 2 );
param_convert ( 3 );
param_convert ( 4 );
// Save the name, level required, and classid
copy ( g_zclass_name [ g_zclass_i ], sizeof g_zclass_name [ ] -1, name );
copy ( g_zclass_info [ g_zclass_i ], sizeof g_zclass_info [ ] - 1, info );
copy ( g_zclass_model [ g_zclass_i ], sizeof g_zclass_model [ ] - 1, model );
copy ( g_zclass_clawmodel [ g_zclass_i ], sizeof g_zclass_clawmodel [ ] - 1, clawmodel );
g_zclass_hp [ g_zclass_i ] = hp
g_zclass_spd [ g_zclass_i ] = speed
g_zclass_grav [ g_zclass_i ] = gravity
g_zclass_kb [ g_zclass_i ] = knockback
g_zclass_lvl [ g_zclass_i ] = level
// For the load_data and save_data
new tSave [ 40 ];
formatex ( tSave, sizeof tSave - 1, "%s%s", name, info );
replace_all ( tSave, sizeof tSave - 1, ";", "" );
replace_all ( tSave, sizeof tSave - 1, " ", "" );
g_zclass_load [ g_zclass_i ] = tSave;
// Get the classid from zombie plague
new g_returnclass_id;
g_returnclass_id = zp_class_zombie_register ( g_zclass_name [ g_zclass_i ], g_zclass_info [ g_zclass_i ], g_zclass_hp [ g_zclass_i ] / 2, g_zclass_spd [ g_zclass_i ], g_zclass_grav [ g_zclass_i ] );
zp_class_zombie_register_model ( g_returnclass_id, g_zclass_model [ g_zclass_i ] );
zp_class_zombie_register_claw ( g_returnclass_id, g_zclass_clawmodel [ g_zclass_i ] );
zp_class_zombie_register_kb ( g_returnclass_id, g_zclass_kb [ g_zclass_i ] );
if ( g_returnclass_id == -1 )
{
server_print ( "%s %L", textHeader, LANG_PLAYER, "ERR_BADRETURN" );
return -1;
}
g_zclass_i++
return g_zclass_i-1;
}
And the warning:
Code:
Welcome to the AMX Mod X 1.8.3-dev+63322c9 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team
Warning: Tag mismatch on line 1570
Header size: 3512 bytes
Code size: 38856 bytes
Data size: 74212 bytes
Stack/heap size: 16384 bytes; max. usage is unknown, due to recursion
Total requirements: 132964 bytes
1 Warning.
Copied output file to: D:\HLDS\steamcmd\hlds\czero\addons\amxmodx\plugins\
Done.
The error is here
PHP Code:
g_returnclass_id = zp_class_zombie_register ( g_zclass_name [ g_zclass_i ], g_zclass_info [ g_zclass_i ], g_zclass_hp [ g_zclass_i ] / 2, g_zclass_spd [ g_zclass_i ], g_zclass_grav [ g_zclass_i ] );
And i cannot think why ... :-?? i can ignore it but i don't want to
__________________