AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SQL]If its 0 kill the plugin (https://forums.alliedmods.net/showthread.php?t=126401)

NiQu 05-09-2010 01:22

[SQL]If its 0 kill the plugin
 
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?

Exolent[jNr] 05-09-2010 01:35

Re: [SQL]If its 0 kill the plugin
 
Show your current code because there's no sense in us writing a complete SQL example.

NiQu 05-09-2010 02:32

Re: [SQL]If its 0 kill the plugin
 
I stole it from hns xp v0.0.1 :)
Tested another one too but neither one worked.


All times are GMT -4. The time now is 03:39.

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