kgns
Can you fix it?
BTW where can i change minimal float value?
0.00000001 is better than 0.0
Plugins
Code:
public int FloatMenuHandler(Menu menu, MenuAction action, int client, int selection)
{
switch(action)
{
case MenuAction_Select:
{
if(IsClientInGame(client))
{
char buffer[30];
menu.GetItem(selection, buffer, sizeof(buffer));
if(StrEqual(buffer, "increase"))
{
g_fFloatValue[client][g_iIndex[client]] = g_fFloatValue[client][g_iIndex[client]] - g_fFloatIncrementSize;
if(g_fFloatValue[client][g_iIndex[client]] < 0.0)
{
g_fFloatValue[client][g_iIndex[client]] = 0.0; <--- This is minimal float value?
}