Everytime I run the script on my server, when I join and check the server console, it returns everything is ok, even when the steam id isnt in the table.
I need help finding when the script doesn't find a row containing the steam id.
this was my source of info.
http://wiki.alliedmods.net/SQL_(SourceMod_Scripting)
PHP Code:
public OnClientPutInServer (client) {
decl String:authid[32]
GetClientAuthString(client, authid, sizeof(authid))
new String:query1format[255]
Format(query1format, sizeof(query1format), "SELECT * FROM points WHERE Steam_ID = '%s'",authid)
new Handle:query1 = SQL_Query(db, query1format)
if(query1 == INVALID_HANDLE) {
PrintToServer("Failed to get steam id, %s",authid)
} else {
PrintToServer("Everything is OK")
}
CloseHandle(query1)
}
__________________