AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   sql (https://forums.alliedmods.net/showthread.php?t=14128)

n0obie4life 06-10-2005 23:49

sql
 
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 :D

if its possible, how do i do it?

v3x 06-10-2005 23:53

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.

n0obie4life 06-10-2005 23:54

wee great :D. lets start taking some code off jghg's forum mod.

n0obie4life 06-11-2005 00:00

v3x, another question...

how do i make the plugin do something every 10 frags the user does :D.


All times are GMT -4. The time now is 16:36.

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