Raised This Month: $ Target: $400
 0% 

sql


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 06-10-2005 , 23:49   sql
Reply With Quote #1

can amxx do this?

like this current query has a number 10. then the plugin says, add 2 because this user has done something good!

so the number becomes 12

if its possible, how do i do it?
__________________
Plugins:
none

n0obie4life is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-10-2005 , 23:53  
Reply With Quote #2

Bah, you're lucky I even know how to do this.. :p

Code:
result = dbi_query(dbc,"UPDATE table SET thisvar=thisvar+2 WHERE steamid = '%s'",steamid)

I'm pretty sure that's the query for it.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 06-10-2005 , 23:54  
Reply With Quote #3

wee great . lets start taking some code off jghg's forum mod.
__________________
Plugins:
none

n0obie4life is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 06-11-2005 , 00:00  
Reply With Quote #4

v3x, another question...

how do i make the plugin do something every 10 frags the user does .
__________________
Plugins:
none

n0obie4life 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 16:36.


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