I added "#include <dhudmessage>" where the other includes are added, at the top of the plugin's code.
Then, I changed this:
Code:
set_hudmessage(0, 255, 0, HUD_MODE_X, HUD_MODE_Y, 0, 6.0, HOLD_TIME, 0.0, 0.0, -1)
ShowSyncHudMsg(0, g_SyncHud, "Assassin has %d health points!", get_user_health(id))
To this:
Code:
set_dhudmessage(0, 255, 0, HUD_MODE_X, HUD_MODE_Y, 0, 6.0, HOLD_TIME, 0.0, 0.0, -1)
set_dhudmessage(0, g_SyncHud, "Assassin has %d health points!", get_user_health(id))
Here is what the compiler said:
// C:\Mod\cstrike\addons\amxmodx\scripting\healt h_reminder_nem.sma(61) : warning 213: tag mismatch
// C:\Mod\cstrike\addons\amxmodx\scripting\healt h_reminder_nem.sma(62) : error 035: argument type mismatch (argument 3)
The lines I edited are line 61 and line 62.
What did I do wrong?