Raised This Month: $ Target: $400
 0% 

DBI mysql help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LefEx
New Member
Join Date: Aug 2008
Old 08-29-2008 , 05:18   DBI mysql help
Reply With Quote #1

Hi, i am new to amxmodx plugins and now i have a problem.. I hope someone can help.

get_user_authid(iArrPlayers[iID], sSteamID, MAX_MESSAGE_SIZE-1)
res = dbi_query(sqlConn, "SELECT username FROM users WHERE steamid='%s'", sArg)

if (dbi_num_rows(res) > 0){
SendMessage("[Check] Your Steam ID is already registered", iArrPlayers[iID])
new err[255]
new errNum = dbi_error(sqlConn, err, 254)
server_print("SteamReg: %s|%d", err, errNum)
dbi_close(sqlConn)
return 1
}

I get the error:
L 08/29/2008 - 11:179: [MySQL] Invalid DBI result handle 0
L 08/29/2008 - 11:179: [AMXX] Displaying debug trace (plugin "bh-reg.amxx")
L 08/29/2008 - 11:179: [AMXX] Run time error 10: native error (native "dbi_num_rows")
L 08/29/2008 - 11:179: [AMXX] [0] php4C5kui.sma::AuthPlayer (line 112)
L 08/29/2008 - 11:179: [AMXX] [1] php4C5kui.sma::SayHandler (line 55)
LefEx 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 03:07.


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