PHP Code:
#include <amxmodx>
new const PLUGIN[] = "HudMSG";
new const VERSION[] = "1.0";
new const AUTHOR[] = "wEight";
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
}
public client_putinserver()
{
new szSteamId[35];
get_user_authid( id, szSteamId, 34 );
new health[6];
get_user_health(id, health, 5);
new ping, loss;
get_user_ping(id, ping, loss);
new nextmap[32];
get_cvar_string("amx_nextmap", nextmap, 31);
set_hudmessage(127, 212, 255, 0.0, 0.2, 1, 6.0, 1.0) ;
show_hudmessage(0, "Tvoj steam: %s^nHealth: %s^nTvoj ping:%s|%s^nSledeca mapa: %s", szSteamId, health, ping, loss, nextmap);
set_task(0.9, "client_putinserver");
}
Code:
sdasdasd.sma(15) : error 017: undefined symbol "id"
sdasdasd.sma(15) : warning 215: expression has no effect
sdasdasd.sma(15) : warning 215: expression has no effect
sdasdasd.sma(15) : error 001: expected token: ";", but found ")"
sdasdasd.sma(15) : error 029: invalid expression, assumed zero
sdasdasd.sma(15) : fatal error 107: too many error messages on one line
How 2 fix it?