Fix hostname possible bug @ imessage.sma

This commit is contained in:
Hattrick HttrckCldHKS 2018-09-12 16:45:09 +03:00 committed by GitHub
parent 514e62d0e0
commit 68e662756e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,10 +59,9 @@ public infoMessage()
ArrayGetArray(g_Values, g_Current, values);
new hostname[64];
get_cvar_string("hostname", hostname, charsmax(hostname));
replace(Message, charsmax(Message), "%hostname%", hostname);
replace(Message, charsmax(Message), "%version%", AMXX_VERSION_STR);
replace(Message, charsmax(Message), "%hostname%", hostname);
set_hudmessage(values[0], values[1], values[2], X_POS, Y_POS, 0, 0.5, HOLD_TIME, 2.0, 2.0, -1);