sad to say none.Has anyone procured a fix for this voting system to be compatible with Hercules?
case "cash": // insert or update cashpoints $cashpoints_var = "#CASHPOINTS"; $sql = "UPDATE {$server->loginDatabase}.$cp_tbl SET `value` = value + ? WHERE `key` = ? AND `account_id` = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array($res->votepoints, $cashpoints_var, $account_id)); // account doesn't have a record for cashpoints // so we will add a row if ( ! $sth->rowCount()) { $sql = "INSERT INTO {$server->loginDatabase}.$cp_tbl VALUES(?,?,0,?)"; $sth = $server->connection->getStatement($sql); $sth->execute(array($account_id, $cashpoints_var, $res->votepoints)); if ( ! $sth->rowCount()) $errorMessage = sprintf(Flux::message("UnableToVote"), 4); }break;
I'm not sure if there's a problem but Vote for Points has no option to exchange it to Cash/Kafra points in-game directly from the site even if it's already set in addons.phpseems like feefty is away from RO community, what if we move those addons to git and start to get community to fix erros?
Unfortunately still getting the same error, however, the points are at least applying! Thank you!To anyone having an Unable to vote for the server. Err no. 4 error try this fix.
/modules/voteforpoints/index.php
Change
case "cash": // insert or update cashpoints $cashpoints_var = "#CASHPOINTS"; $sql = "UPDATE $cp_tbl SET value = value + ? WHERE key = ? AND account_id = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array((int) $res->votepoints, $cashpoints_var, $account_id)); // account doesn't have a record for cashpoints // so we will add a row if ( ! $sth->rowCount()) { $sql = "INSERT INTO $cp_tbl VALUES (0, ?, ?, 2, ?)"; $sth = $server->connection->getStatement($sql); $bind = array($cashpoints_var, $res->votepoints, $account_id); $sth->execute($bind); if ( ! $sth->rowCount()) $errorMessage = sprintf(Flux::message("UnableToVote"), 4); }break;
to
case "cash": // insert or update cashpoints $cashpoints_var = "#CASHPOINTS"; $sql = "UPDATE {$server->loginDatabase}.$cp_tbl SET `value` = value + ? WHERE `key` = ? AND `account_id` = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array($res->votepoints, $cashpoints_var, $account_id)); // account doesn't have a record for cashpoints // so we will add a row if ( ! $sth->rowCount()) { $sql = "INSERT INTO {$server->loginDatabase}.$cp_tbl VALUES(?,?,0,?)"; $sth = $server->connection->getStatement($sql); $sth->execute(array($account_id, $cashpoints_var, $res->votepoints)); if ( ! $sth->rowCount()) $errorMessage = sprintf(Flux::message("UnableToVote"), 4); }break;
What error? Btw, do you issue displaying the current cash points?Unfortunately still getting the same error, however, the points are at least applying! Thank you!To anyone having an Unable to vote for the server. Err no. 4 error try this fix.
/modules/voteforpoints/index.php
Change
case "cash": // insert or update cashpoints $cashpoints_var = "#CASHPOINTS"; $sql = "UPDATE $cp_tbl SET value = value + ? WHERE key = ? AND account_id = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array((int) $res->votepoints, $cashpoints_var, $account_id)); // account doesn't have a record for cashpoints // so we will add a row if ( ! $sth->rowCount()) { $sql = "INSERT INTO $cp_tbl VALUES (0, ?, ?, 2, ?)"; $sth = $server->connection->getStatement($sql); $bind = array($cashpoints_var, $res->votepoints, $account_id); $sth->execute($bind); if ( ! $sth->rowCount()) $errorMessage = sprintf(Flux::message("UnableToVote"), 4); }break;
to
case "cash": // insert or update cashpoints $cashpoints_var = "#CASHPOINTS"; $sql = "UPDATE {$server->loginDatabase}.$cp_tbl SET `value` = value + ? WHERE `key` = ? AND `account_id` = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array($res->votepoints, $cashpoints_var, $account_id)); // account doesn't have a record for cashpoints // so we will add a row if ( ! $sth->rowCount()) { $sql = "INSERT INTO {$server->loginDatabase}.$cp_tbl VALUES(?,?,0,?)"; $sth = $server->connection->getStatement($sql); $sth->execute(array($account_id, $cashpoints_var, $res->votepoints)); if ( ! $sth->rowCount()) $errorMessage = sprintf(Flux::message("UnableToVote"), 4); }break;
still getting the error.What error? Btw, do you issue displaying the current cash points?Unfortunately still getting the same error, however, the points are at least applying! Thank you!To anyone having an Unable to vote for the server. Err no. 4 error try this fix.
/modules/voteforpoints/index.php
Change
case "cash": // insert or update cashpoints $cashpoints_var = "#CASHPOINTS"; $sql = "UPDATE $cp_tbl SET value = value + ? WHERE key = ? AND account_id = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array((int) $res->votepoints, $cashpoints_var, $account_id)); // account doesn't have a record for cashpoints // so we will add a row if ( ! $sth->rowCount()) { $sql = "INSERT INTO $cp_tbl VALUES (0, ?, ?, 2, ?)"; $sth = $server->connection->getStatement($sql); $bind = array($cashpoints_var, $res->votepoints, $account_id); $sth->execute($bind); if ( ! $sth->rowCount()) $errorMessage = sprintf(Flux::message("UnableToVote"), 4); }break;
to
case "cash": // insert or update cashpoints $cashpoints_var = "#CASHPOINTS"; $sql = "UPDATE {$server->loginDatabase}.$cp_tbl SET `value` = value + ? WHERE `key` = ? AND `account_id` = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array($res->votepoints, $cashpoints_var, $account_id)); // account doesn't have a record for cashpoints // so we will add a row if ( ! $sth->rowCount()) { $sql = "INSERT INTO {$server->loginDatabase}.$cp_tbl VALUES(?,?,0,?)"; $sth = $server->connection->getStatement($sql); $sth->execute(array($account_id, $cashpoints_var, $res->votepoints)); if ( ! $sth->rowCount()) $errorMessage = sprintf(Flux::message("UnableToVote"), 4); }break;
![]()
Mine is a fresh install but still getting the same error after applying that fix.@Shatotech
Can you post your addon.php?
same here. after applying latest hercules fluxMine is a fresh install but still getting the same error after applying that fix.@Shatotech
Can you post your addon.php?
still getting error.
What error? Tell me so I can check it.same here. after applying latest hercules fluxMine is a fresh install but still getting the same error after applying that fix.@Shatotech
Can you post your addon.php?
still getting error.
Error 1.What error? Tell me so I can check it.same here. after applying latest hercules fluxMine is a fresh install but still getting the same error after applying that fix.@Shatotech
Can you post your addon.php?
still getting error.
We use essential cookies to make this site work, and optional cookies to enhance your experience.