View Single Post
zeroibis
Veteran Member
Join Date: Jun 2007
Old 03-25-2012 , 01:45   Re: SSMS - Sourcemod Server Management System
Reply With Quote #132

EDIT SEE NEXT POST FOR FINAL SOLUTION!

So far I have found it only shows the last plugin that needs an update. I think the issue is with ON DUPLICATE KEY UPDATE. I did at least get it to record the plugin id in there now:

Line 127 change to:
Code:
        $result = mysql_query( "INSERT INTO plugindb (pluginid,threadid,description,version) VALUES('$url[0]','$threadid','$description','$url[1]') ON DUPLICATE KEY UPDATE pluginid='$url[0]',threadid='$threadid',description='$description',version='$url[1]'") or die(mysql_error());
OK here is the issue. Instead of making a new database entry for the latest version we just need to update a part in the existing section about this. Basically eliminate plugindb and just use mods. I am going to try to reprogram it to work like this which should be more efficient and actually work correctly.
__________________

Last edited by zeroibis; 03-25-2012 at 03:13.
zeroibis is offline