Quote:
Originally Posted by ConnorMcLeod
Update the code with that one and recompile :
PHP Code:
actionHeal(id) { new Float:fGameTime = get_gametime() if(fGameTime > gfNextHealTime[id]) { new iHealth = get_user_health(id); if( iHealth < 100 ) { static pCvarBmHealAmount; if( !pCvarBmHealAmount ) { pCvarBmHealAmount = get_cvar_pointer("bm_healamount"); } iHealth += get_pcvar_num(pCvarBmHealAmount); if( iHealth > 100 ) { iHealth = 100; } set_user_health(id, iHealth); gfNextHealTime[id] = fGameTime + 0.5; } } }
|
Didnt work.
//// ijump_ibcm.sma
// C:\Program Files\Steam\steamapps\anton_sexy\counter-strike\cstrike\addons\amx
modx\Copy of scripting\ijump_ibcm.sma(1476) : error 001: expected token: ";", bu
t found "if"
//
// 1 Error.
// Could not locate output file compiled\ijump_ibcm.amx (compile failed).
Press enter to exit ...
Row 1476 : if(fGameTime > gfNextHealTime[id])
__________________