Raised This Month: $ Target: $400
 0% 

[Fix] for amx_ban problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 11-02-2008 , 09:56   Re: [Fix] for amx_ban problem
Reply With Quote #4

After playing around with this a little more, I found out I was wrong about the cause.
So while the above fix works, simply removing the quotes (^") around the SteamID variable holder allows the plugin to work again too. (See Post 13 in the same thread)

Personally, I still prefer the first method. They functionally do the same thing, but breaking the statement down into separate commands makes it a lot easier to read.

Attached is a modified admincmd.sma that only removes the quotes.

Note: In the code, I also removed the quotes around the minutes variable holder. It didn't seem to matter one way or the other on that one.
Attached Files
File Type: sma Get Plugin or Get Source (admincmd_mod2.sma - 1497 views - 30.6 KB)
__________________
=====================================
- My Plugins -
=====================================

Last edited by Vet; 11-02-2008 at 10:02.
Vet is offline
Send a message via MSN to Vet
 



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 11:04.


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