how to show a variable in a hudmessage?
i know how to show hp and stuff but not variables
hp example:
Code:
public hpmessage(id)
{
new health[33]
get_user_health(id,health,32)
set_hudmessage(200, 200, 0, -1.0, 0.45, 2, 6.0, 3.0, 0.01, 0.1, 86)
show_hudmessage(id, "You have %i HP", health)
return PLUGIN_HANDLED
}
variabel?:
Code:
public message(id)
{
new something[33]
?????(id,something,32)
set_hudmessage(200, 200, 0, -1.0, 0.45, 2, 6.0, 3.0, 0.01, 0.1, 86)
show_hudmessage(id, "You have %i something", something)
return PLUGIN_HANDLED
}