You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue with inviting players to guild on my server, when i try to invite this error message pops up:
string(72) "INSERT INTO guild_invites (player_id, guild_id) VALUES ('53', '3')"
(query`` - SQL `error)
Type: voidQuery (voidQuery is used for update, insert or delete from database)
Field 'date' doesn't have a default value
Now i got around this issue by modifying the /html/engine/function/users.php file and changing the following:
from:
// Invite character to guild
function guild_invite_player($cid, $gid) {
$cid = (int)$cid;
$gid = (int)$gid;
mysql_insert("INSERT INTO guild_invites (player_id, guild_id, date) VALUES ('$cid', '$gid')");
to:
// Invite character to guild
function guild_invite_player($cid, $gid) {
$cid = (int)$cid;
$gid = (int)$gid;
mysql_insert("INSERT INTO guild_invites (player_id, guild_id, date) VALUES ('$cid', '$gid', UNIX_TIMESTAMP(NOW()))");
}
This allows me to send the invite to the player and it shows on the website. However when i then log into the players account and attempt to join, i encounter this error message in red on the guild site.
Join guild request sent from wrong account.
At this point I am unsure what else i could do, as somehow the site doesnt see the logged in account as the right account? even tho it is the player that has been invited. Please help
The text was updated successfully, but these errors were encountered:
The above worked, players can join guild now with no problems. Also this was the same issue for leaving the guild, i made similar changes to guilds.php for leaving the guild and that worked as well!
I have an issue with inviting players to guild on my server, when i try to invite this error message pops up:
Now i got around this issue by modifying the /html/engine/function/users.php file and changing the following:
from:
to:
This allows me to send the invite to the player and it shows on the website. However when i then log into the players account and attempt to join, i encounter this error message in red on the guild site.
At this point I am unsure what else i could do, as somehow the site doesnt see the logged in account as the right account? even tho it is the player that has been invited. Please help
The text was updated successfully, but these errors were encountered: