Mam pewien problem przy wyciaganiu wartosci cvara..
Mianowicie.
#include <amxmodx>
#define PLUGIN "Nowy Plugin"
#define VERSION "1.0"
#define AUTHOR "Blak Rajder"
new cvarCos;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_clcmd("say /cos", "cos");
cvarCos = register_cvar("amx_cos", "0.01");
}
public cos(id)
{
new Float:Wartosc = get_pcvar_float(cvarCos);
client_print(id, print_chat, "Cos ma wartosc: %d", Wartosc);
}
Tak wyglada moj plugin.
Lecz gdy na serwerze wpisze w say /cos to w say pojawia mi sie cos takiego
Cos ma wartosc 100898177
W czym tu jest problem? proszę o pomoc
Pozdrawiam!