DB Connection
Hello everyone !
First, I want to tell you : I am new on this forum. And I just started to learn SourcePawn. So, please, can you explain me the code you will give to me ? (I am on Programmer School, so I understand quickly code like that, and I know SQL language). So this is my problem : A friend gave to me a JailMod plugin. All works, but this plugin need a connection to a DataBase to save fidelity points on a shop (you earn it when you kill someone). But my databases.cfg is correctly configurated (same like sourcebans, and sourcebans is ok). So the problem is in the plugin... Here the source code : Code:
XPS : Sorry for my bad English, I am French. |
Re: DB Connection
Oh you.
Quote:
|
Re: DB Connection
It's not my code, I telled the author give it to me. And I use this plugin only on my server. It makes me Admin no ?
When I had the code, it was the Steam_ID from the author, but I changed it with now my Steam_ID because I don't want to allow him to be admin on my server. I didn't know if this code was essential for the plugin and if I can delete it, so I just replaced with my Steam_ID. |
Re: DB Connection
If other people installed this plugin using the code above in post #1 it'd give you, Phobie, complete root admin and RCON access to their servers. Very malicious. The plugin should have been blacklisted the moment it was published.
|
Re: DB Connection
Quote:
anyway, how do you know if the database is connecting properly? it doesn't seem to print the errors of the connection or queries. |
Re: DB Connection
The database is not connected properly. Because table are not created, but ERROR didn't appear. When I create it myself, any data are in the tables. :/
But I create the access in databases.cfg named "jailmod". It's the same information like "sourcebans", but SourceBans create table, not JailMod. I don't know if you understand me. My English is poor. :/ EDIT : My databases.cfg : Code:
"Databases" |
Re: DB Connection
It's no create for me, it's for root admin to offer him the possibility of recovered its access when another server or hack. Is not malicious.
|
Re: DB Connection
My databases is accessible (SourceBans function properly).
The databases.cfg is correct, because it's the same information between SourceBans and JailMod. So, the error is in the plugin... But I didn't have error. :/ I don't understand how resolve it. |
Re: DB Connection
Up please, point on shop are not saved when users disconnect and reconnect on the server.
|
Re: DB Connection
Up please. :/
|
| All times are GMT -4. The time now is 12:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.