• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Can anyone figure out why my trigger doesn't work??

xKnightmarex

New Member
Joined
Mar 11, 2013
Messages
94
Reaction score
3
CREATE DEFINER=`root`@`127.0.0.1`
TRIGGER `guildhall_invite`
AFTER UPDATE ON `players`
FOR EACH ROW
BEGIN
if( rank_id = 1 OR rank_id = 2 OR rank_id = 3 )
{ INSERT INTO `house_lists` (`house_id`, `listid`, `list`) VALUES ('113', NEW.`id`, 'name'); }
ELSE{ INSERT INTO `house_lists` (`house_id`, `listid`, `list`) VALUES ('114', NEW.`id`, 'name'); }
END



any ideas why this doesn't work?

I'm trying to make it so that when you join a guild your automatically allowed to enter the guildhall
 
Back
Top