Guten Morgen
Ich habe ein kleines Problem
wenn ich den query ausführen lasse, crasht der Server
wbb_SetUserBoardModeration(name[],BoardID)
{
new query[1024];
format(query,1024,"INSERT INTO `wbb1_1_board_moderator` (`boardID`,`userID`,`groupID`,`canDeleteThread`,`canReadDeletedThread`,`canDeleteThreadCompletely`,`canCloseThread`,`canEnableThread`,`canMoveThread`,`canCopyThread`,`canMergeThread`,\
`canEditPost`,`canDeletePost`,`canReadDeletedPost`,`canDeletePostCompletely`) VALUES ('%d','%d','0','1','1','0','1','1','1','1','1','0','1','1','0')",BoardID,strval(GetUserData(name, "userID")));
mysql_query(query);
format(query,1024,"UPDATE `wbb1_1_board_moderator` SET `canClosePost` = '1',`canEnablePost` = '1',`canMovePost` = '1',`canCopyPost` = '1',`canMergePost` = '1',`canReplyClosedThread` = '1',`canPinThread` = '1'\
,`canStartAnnouncement` = '1',`canMarkAsDoneThread` = '1' WHERE userID = '%d' AND `boardID` = '%d'",strval(GetUserData(name, "userID")),BoardID);
mysql_query(query);
mysql_free_result();
return 1;
}
Hat einer eine idee woran das liegen könnte?