Code:
#include <amxmodx>
#include <engine>
public plugin_init() {
register_plugin("Uptime","1.0","cheshire-")
register_clcmd("say uptime","do_uptime")
}
public do_uptime(id) {
new Float:uptime = floatround(halflife_time())
client_print(id,print_chat,"- This server has been up for about %f seconds.",uptime)
}
Warning 213: Tag mismatch on line 12.
But this compiles without error...
Code:
new Float:uptime = halflife_time()
client_print(id,print_chat,"- This server has been up for about %f seconds.",uptime)
So if the upper example is not a float, then what is it?
__________________