Player data in not inserting into DB Corectly
The Table is creating corectly, but players are not insterted into db. Why?
Code: PHP Code:
|
Re: Player data in not inserting into DB Corectly
Check your error logs. Also, you should check if the database is connected to yet (g_DB != INVALID_HANDLE) before running your query. If you are loading the plugin late, all OnClientPostAdminCheck have likely already fired, so you will want to add a late load check and run all valid clients through OnClientPostAdminCheck. I dont see anything that would keep it from firing otherwise.
|
Re: Player data in not inserting into DB Corectly
Escape values before inserting in query, or use Database.Format()
|
Re: Player data in not inserting into DB Corectly
Quote:
Will try, thanks |
Re: Player data in not inserting into DB Corectly
you should also use the databse methodmap I'm not sure if it's better performance but ye...
|
Re: Player data in not inserting into DB Corectly
Quote:
|
Re: Player data in not inserting into DB Corectly
Quote:
|
Re: Player data in not inserting into DB Corectly
PHP Code:
http://prntscr.com/ol7bas |
Re: Player data in not inserting into DB Corectly
There is a backtick between INTO and panel that doesn't belong there.
|
Re: Player data in not inserting into DB Corectly
Quote:
So, i guess there is literally no difference (performance wise) using the normal format vs methodmaps. Good to know, since I prefer OO coding myself. |
All times are GMT -4. The time now is 02:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.