Raised This Month: $ Target: $400
 0% 

Mmorpg - Mysql DB dev. questions


Post New Thread Reply   
 
Thread Tools Display Modes
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 06-03-2013 , 10:49   Re: Mmorpg - Mysql DB dev. questions
Reply With Quote #21

Could some1 revise this basic SQL core?
Much appreciated and you will spare some work to the plugin approver when i finally release Mmorpg, wich shouldnt be to long anymore.

Sincerely,
Striker07
Attached Files
File Type: sp Get Plugin or Get Source (mmorpg_sql_lvlcore.sp - 41 views - 10.0 KB)
File Type: inc mmorpg_lvlcore.inc (4.6 KB, 39 views)
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]

Last edited by striker07; 06-03-2013 at 13:39.
striker07 is offline
Doodil
Senior Member
Join Date: Mar 2012
Old 06-03-2013 , 17:09   Re: Mmorpg - Mysql DB dev. questions
Reply With Quote #22

Well, it doesn't really affect your code yet, but you should definitely look into SQL-Injections. If you some when decide to save the players name in your database(to maybe show the highest ranked player or something) and you keep using this unsafe way to put data in your queries, any player might be able to drop all your database-tables or manipulate the data otherwise. This is especially important when your source code is publicly available and everyone can see all the table names and queries.
Doodil is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 06-04-2013 , 15:28   Re: Mmorpg - Mysql DB dev. questions
Reply With Quote #23

what?, youre english is off in the details.

I'm not saving names in this sql core, not yet.
In the other levelcore i have a table of wich the primary key is a players steam id, in this table the players name is stored.

On what exactly should i look out for?
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
striker07 is offline
Doodil
Senior Member
Join Date: Mar 2012
Old 06-05-2013 , 11:34   Re: Mmorpg - Mysql DB dev. questions
Reply With Quote #24

its not off, I said when you somewhen decide to save something like this. It is bad practice to directly put variables into queries (using %s or whatever), especially when its user-data. Take a look into "prepared statements"
Doodil is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 06-05-2013 , 12:14   Re: Mmorpg - Mysql DB dev. questions
Reply With Quote #25

Quote:
Originally Posted by Doodil View Post
its not off, I said when you somewhen decide to save something like this. It is bad practice to directly put variables into queries (using %s or whatever), especially when its user-data. Take a look into "prepared statements"
SourceMod doesn't supported threaded prepared statements, which pretty much makes them unusable.
__________________
asherkin 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 14:21.


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