Raised This Month: $51 Target: $400
 12% 

[SQLX] SQL_MakeStdTuple() doesn't work in listen server


  
 
 
Thread Tools Display Modes
Author Message
-hi-
Member
Join Date: Jul 2006
Old 09-14-2006 , 15:43   [SQLX] SQL_MakeStdTuple() doesn't work in listen server
#1

When connecting to the database using SQL_MakeStdTuple(), it doesn't use the password for some reason. The error message said access denied for root@localhost [using password: NO]. I do have sql.cfg set up correctly.
-hi- is offline
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 09-14-2006 , 15:57   Re: [SQLX] SQL_MakeStdTuple() doesn't work in listen server
#2

SQL_MakeStdTuple? Does that function exist?
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 09-14-2006 , 16:19   Re: [SQLX] SQL_MakeStdTuple() doesn't work in listen server
#3

@ MaximusBrood

Yes, there is a SQL_MakeStdTuple. It is a stock in the sqlx.inc

@ Hi

SQL_MakeStdTuple uses the standard cvar of amxmodx\configs\sql.cfg. So you need to fill those out before using that stock. As you can see in the stock.

Code:
stock Handle:SQL_MakeStdTuple() {     static host[64], user[32], pass[32], db[128]     static get_type[12], set_type[12]         get_cvar_string("amx_sql_host", host, 63)     get_cvar_string("amx_sql_user", user, 31)     get_cvar_string("amx_sql_pass", pass, 31)     get_cvar_string("amx_sql_type", set_type, 11)     get_cvar_string("amx_sql_db", db, 127)         SQL_GetAffinity(get_type, 12)         if (!equali(get_type, set_type))     {         if (!SQL_SetAffinity(set_type))         {             log_amx("Failed to set affinity from %s to %s.", get_type, set_type)         }     }         return SQL_MakeDbTuple(host, user, pass, db) }
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
-hi-
Member
Join Date: Jul 2006
Old 09-14-2006 , 16:51   Re: [SQLX] SQL_MakeStdTuple() doesn't work in listen server
#4

Quote:
Originally Posted by -hi- View Post
I do have sql.cfg set up correctly.
-hi- is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 09-14-2006 , 16:55   Re: [SQLX] SQL_MakeStdTuple() doesn't work in listen server
#5

Then post your code whole.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 09-14-2006 , 16:56   Re: [SQLX] SQL_MakeStdTuple() doesn't work in listen server
#6

Quote:
Originally Posted by teame06 View Post
@ MaximusBrood

Yes, there is a SQL_MakeStdTuple. It is a stock in the sqlx.inc
Strange, it's not in the funcwiki. I'll set a request: http://forums.alliedmods.net/showthread.php?p=381075
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
BAILOPAN
Join Date: Jan 2004
Old 09-21-2006 , 19:06   Re: [SQLX] SQL_MakeStdTuple() doesn't work in listen server
#7

No reply from op in seven days; locking.
__________________
egg
BAILOPAN is offline
 



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 07:26.


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