Raised This Month: $ Target: $400
 0% 

Php-> AmxX


Post New Thread Reply   
 
Thread Tools Display Modes
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 09-03-2004 , 20:31  
Reply With Quote #11

Figured out the problem. The mysql driver shouldn't be used with client API versions higher then 4.0.10, the mysqli driver should be. So, I guess I get to add cross-server support soon
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
kryptonyte
Senior Member
Join Date: Aug 2004
Location: South Carrolinaa
Old 09-03-2004 , 21:56  
Reply With Quote #12

did you update it yet or just found the problem.
__________________

Kaboom Clan Site
Visit Kaboom Counter-Strike 1.6 Server: 24.88.56.188:27015
Visit Kaboom DOD Server: 24.88.56.188:2030
kryptonyte is offline
Send a message via ICQ to kryptonyte Send a message via AIM to kryptonyte Send a message via MSN to kryptonyte Send a message via Yahoo to kryptonyte
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 09-05-2004 , 17:40  
Reply With Quote #13

I'm maybe 80% through fixing everything
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
KiN | SuicideDog
Senior Member
Join Date: Mar 2004
Old 09-05-2004 , 20:00  
Reply With Quote #14

why are you requiring mysql? Most ppl have to rent their server, meaning no mysql. I know a bunch of ppl use the mysql admin.. but most don't.. they just don't need it.. but just about everyone would love the ability to admin their server via webpage. I'm just saying I hope you come out with a version that doens't require mysql. Person mysql is cool for unified admin .. and I could prolly use it if I wanted but I don't cuz it's not worth the trouble of setting it up.. not to mention the amx mysql system has always been bugged. Yes I know that will prolly change with .20 but still..

I have a win2k3 box and I'd be more comfortable with running msde2000 than mysql. I'm not afraid of Linux it's just I'm more comfortable.. and to be honest even msde is over kill for what I'd be using it for. I noticed there was a mssql module that comes with amx.20tp4 .. can I use that instead of mysql? If so how do I create the tables? or will they be auto created?
__________________
Code:
#include <amxmodx> public client_connect(id){   new playerIQ    get_player_IQ(id,playerIQ)   if(playerIQ < 100 )  {     client_cmd(id,"say I'm too stupid to play;quit")  }   PLUGIN_CONTINUE}
KiN | SuicideDog is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 09-05-2004 , 22:47  
Reply With Quote #15

As of this next version I am in the middle of, any sql server supported by php should work. The slight downside to this, is that it will now require a download from http://pear.php.net, you can use the get_pear.php script, make sure to download the DB stuff too ;)

The plugin itself supports any sql module you throw at the server, but the php stuff was hardcoded to use mysql.. I took a few hours, removed all that, I just want to run through some basic tests to ensure I didn't break anything.

Some type of sql server will always be required though

I also squashed a few bugs in this version (finally figured out why it wouldnt let people login, and it was a stupid mistake)
Edit: Just uploaded that version
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
kryptonyte
Senior Member
Join Date: Aug 2004
Location: South Carrolinaa
Old 09-06-2004 , 01:59  
Reply With Quote #16

Code:
Fatal error: Call to undefined function: query() in /home/kaboomcs/public_html/php-amxx/install.php on line 35
get this error after attempting to run the install script
__________________

Kaboom Clan Site
Visit Kaboom Counter-Strike 1.6 Server: 24.88.56.188:27015
Visit Kaboom DOD Server: 24.88.56.188:2030
kryptonyte is offline
Send a message via ICQ to kryptonyte Send a message via AIM to kryptonyte Send a message via MSN to kryptonyte Send a message via Yahoo to kryptonyte
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 09-06-2004 , 12:27  
Reply With Quote #17

Ok, I didn't add error checking to that for some reason, even though that is what needs it most
I'll reupload with error checking in install.php

Reuploaded, also make sure you have the DB support from PEAR, its included by default if you use get-pear.php
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
kryptonyte
Senior Member
Join Date: Aug 2004
Location: South Carrolinaa
Old 09-06-2004 , 19:19  
Reply With Quote #18

Quote:
Originally Posted by devicenull
As of this next version I am in the middle of, any sql server supported by php should work. The slight downside to this, is that it will now require a download from http://pear.php.net, you can use the get_pear.php script, make sure to download the DB stuff too ;)
where's the get_pear.php script?

oh and remove the comma after the pear.php.net"," it messes up the link
__________________

Kaboom Clan Site
Visit Kaboom Counter-Strike 1.6 Server: 24.88.56.188:27015
Visit Kaboom DOD Server: 24.88.56.188:2030
kryptonyte is offline
Send a message via ICQ to kryptonyte Send a message via AIM to kryptonyte Send a message via MSN to kryptonyte Send a message via Yahoo to kryptonyte
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 09-06-2004 , 19:53  
Reply With Quote #19

get_pear.php comes with the apache install. its in Apache\PEAR
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Downtown1
Veteran Member
Join Date: Mar 2004
Old 09-06-2004 , 19:58  
Reply With Quote #20

Just run 'locate get_pear.php' and it'll tell you where it is.
Downtown1 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode