Hello guys today i was trying to compile the following code
Code:
#include <amxmodx>
#define VERSION "1.0"
#define PLUGIN "Engine MsG Replace"
new Trie:g_tReplacements
public plugin_init()
{
register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
register_message(get_user_msgid("TextMsg"), "Message_TextMsg")
g_tReplacements = TrieCreate()
TrieSetString(g_tReplacements, "#Bomb_Planted", "The Bomb Has Been Planted")
TrieSetString(g_tReplacements, "#CTs_Win", "Counter-Terrorists Win!")
TrieSetString(g_tReplacements, "#Terrorists_Win", "Terrorists Win!")
TrieSetString(g_tReplacements, "#Round_Draw", "Round Draw!")
TrieSetString(g_tReplacements, "#Target_Bombed", "Target Successfully Bombed!")
TrieSetString(g_tReplacements, "#Defusing_Bomb_With_Defuse_Kit", "Defusing bomb WITH Defuse kit.")
TrieSetString(g_tReplacements, "#Defusing_Bomb_Without_Defuse_Kit", "Defusing bomb WITHOUT Defuse kit.")
TrieSetString(g_tReplacements, "#Bomb_Defused", "The bomb has been defused!.")
TrieSetString(g_tReplacements, "#Auto_Team_Balance_Next_Round", "*** Auto-Team Balance next round ***")
}
public Message_TextMsg(iMsgId, iMsgDest, id)
{
if( !id && get_msg_arg_int(1) == print_center )
{
new szMessage[64]
get_msg_arg_string(2, szMessage, charsmax(szMessage))
if( equal(szMessage, "#Game_will_restart_in") )
{
new szArg1[4]
get_msg_arg_string(3, szArg1, charsmax(szArg1))
formatex(szMessage, charsmax(szMessage), "The game will restart in %s seconds", szArg1)
set_hudmessage(random(256), random(256), random(256), .channel=-1)
show_hudmessage(0, szMessage)
return PLUGIN_HANDLED
}
else if( TrieGetString(g_tReplacements, szMessage, szMessage, charsmax(szMessage)) )
{
set_hudmessage(random(256), random(256), random(256), .channel=-1)
show_hudmessage(0, szMessage)
return PLUGIN_HANDLED
}
}
return PLUGIN_CONTINUE
}
PD: the code isnt mine
i can compile it and even run but the hud looks like this (TOO SMALL)
http://i.imgur.com/lQy8vSf.jpg
http://i.imgur.com/VXCV5U0.jpg
when the hud should looks like this size or kinda
http://i.imgur.com/4yjGwvv.png
please help ive tried to compile so many times even online and the size still soo small