rowcount check
This commit is contained in:
parent
ef103951d2
commit
8f064c9e40
@ -411,6 +411,8 @@ public void mysql_enable_disable_poll(int iclient6, char []table_name_enable)
|
||||
delete rs_disable;
|
||||
return;
|
||||
}
|
||||
if (rs_disable.RowCount > 0)
|
||||
{
|
||||
rs_disable.FetchRow();
|
||||
int status = rs_disable.FetchInt(0);
|
||||
delete rs_disable;
|
||||
@ -418,6 +420,7 @@ public void mysql_enable_disable_poll(int iclient6, char []table_name_enable)
|
||||
PrintToChat(iclient6, "Enabled poll %s", table_name_enable);
|
||||
else
|
||||
PrintToChat(iclient6, "Disabled poll %s", table_name_enable);
|
||||
}
|
||||
editpoll(iclient6, table_name_enable);
|
||||
}
|
||||
|
||||
@ -687,6 +690,8 @@ public void mysql_playtime_requirement(int client, char []info)
|
||||
delete rs;
|
||||
return;
|
||||
}
|
||||
if (rs.RowCount > 0)
|
||||
{
|
||||
int playtime;
|
||||
rs.FetchRow();
|
||||
playtime = rs.FetchInt(0);
|
||||
@ -703,6 +708,7 @@ public void mysql_playtime_requirement(int client, char []info)
|
||||
menu.AddItem("1000", "1000 hours playtime requirement");
|
||||
menu.ExitButton = true;
|
||||
menu.Display(client, MENU_TIME_FOREVER);
|
||||
}
|
||||
delete rs;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user