Raised This Month: $ Target: $400
 0% 

SQL


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bwgrubbs1
Senior Member
Join Date: Sep 2006
Old 06-20-2007 , 17:07   SQL
Reply With Quote #1

I am using my point system on my server, and if server crashes or client crashes all the points of player or players in server are lost...

I just want an example of saving using sql...

such as connecting to database.
...save steam-id and points in db
...load steam-id and points from db
...check if steam-id existed in db from before.
...anything else...just a sample...i need it for multiple plugins...

I understand this...
Code:
#include <amxmodx> #include <amxmisc> #include <dbi> public plugin_init() {     new Host[64],User[64],Pass[64],Db[64]     get_cvar_string("amx_sql_host",Host,63)     get_cvar_string("amx_sql_user",User,63)     get_cvar_string("amx_sql_pass",Pass,63)     get_cvar_string("amx_sql_db",Db,63) }

HOW do I access a table in my database...and save information into it...and retrieve information from it ?
bwgrubbs1 is offline
 


Thread Tools
Display Modes

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 21:26.


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