Jump to content
MakeWebGames

[GLV2][PAID][$6.00]Schooling System


Sim

Recommended Posts

I never created a topic for this:

I just release an update: If you previous downloaded this mod, i recommend updating it.

Fixed bug related to a timing issue that prevented classes from ending when supposed to.

Players can only take a class once, since multiple people requested it. PLAYER CAN NOT TAKE SAME CLASS OVER AND OVER.

When deleting a class from ACP, it also removes it from classes players has taken.

  • Thanks 2
Link to comment
Share on other sites

  • 5 months later...
3 hours ago, Canjucks said:

what's the error log say though?

["E_RECOVERABLE_ERROR","Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '400 = '0' WHERE US_id = '1'' at line 1 in \/var\/www\/vhosts\/crimecity.cc\/httpdocs\/class\/user.php:442\nStack trace:\n#0 \/var\/www\/vhosts\/crimecity.cc\/httpdocs\/class\/user.php(442): PDOStatement->execute()\n#1 \/var\/www\/vhosts\/crimecity.cc\/httpdocs\/class\/user.php(449): user->set()\n#2 \/var\/www\/vhosts\/crimecity.cc\/httpdocs\/modules\/installed\/jobs\/jobs.hooks.php(24): user->add()\n#3 \/var\/www\/vhosts\/crimecity.cc\/httpdocs\/class\/hook.php(42): page->{closure}()\n#4 \/var\/www\/vhosts\/crimecity.cc\/httpdocs\/class\/user.php(354): hook->run()\n#5 \/var\/www\/vhosts\/crimecity.cc\/httpdocs\/class\/module.php(39): user->bindVarsToTemplate()\n#6 \/var\/www\/vhosts\/crimecity.cc\/httpdocs\/class\/page.php(144): module->__construct()\n#7 \/var\/www\/vhosts\/crimecity.cc\/httpdocs\/class\/page.php(58): page->load()\n#8 \/var\/www\/vhosts\/crimecity.cc\/httpdoc","\/var\/www\/vhosts\/crimecity.cc\/httpdocs\/class\/user.php",442,"2021-07-02 02:38:45"]

Link to comment
Share on other sites

This may be my bad going from gl 2.3 to gl 2.4 i changed the add function from add($value, $stat) to add($stat, $value) to keep it inline with the set function.

 

if you swap the parameters around it should work

Edited by Dayo
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...