thanks
now i have another problem :\
i wanted to make my script abit more usefull so i added a speed function:
Code:
public func_spd(id, level, cid)
{
if (!get_cvar_num("togglehm"))
{
console_print(id, "this function is off.. plz change togglehp to 1")
return PLUGIN_HANDLED
}
if (!cmd_access(id, level, cid, 3))
{
console_print(id, "sorry, ur too noob to use that command")
return PLUGIN_HANDLED
}
new arg[32]
new float:spd[5]
read_argv(1,arg,31)
read_argv(2,spd,4)
new float:spdf = str_to_float(spd)
new player = cmd_target(id, arg, 4)
if (!player)
{
console_print(id, "no such player")
return PLUGIN_HANDLED
} else {
set_user_maxspeed(player,spdf)
}
return PLUGIN_HANDLED
when i compile it i get 2 warnings:
in line 105 - warning 213 tag mismatch
in line 111 - warning 213 tag mismatch
line 105 = "new player = cmd_target(id, arg, 4)"
line 111 = "set_user_maxspeed(player,spdf)"
plz help ^^
oh and.. can u plz tell me how to do that the speed wont reset every time i change weapon? :\