Raised This Month: $ Target: $400
 0% 

[SQL]If its 0 kill the plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NiQu
Veteran Member
Join Date: Nov 2009
Old 05-09-2010 , 01:22   [SQL]If its 0 kill the plugin
Reply With Quote #1

Hello, ive been trying this for hours now with no success.
I have 2 rows..

Row #1: shutdown (default 0)
Row #2: server_ip (no default)

At plugin_init the plugin connects to SQL and adds the rows and after that i want to check if shutdown (int) is 1, and if it is 1 i want to kill the plugin or set fail state or something.

Ive been trying for hours with no success so i turn here for help.
How can i do this?
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-09-2010 , 01:35   Re: [SQL]If its 0 kill the plugin
Reply With Quote #2

Show your current code because there's no sense in us writing a complete SQL example.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 05-09-2010 , 02:32   Re: [SQL]If its 0 kill the plugin
Reply With Quote #3

I stole it from hns xp v0.0.1
Tested another one too but neither one worked.
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu 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 03:39.


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