Raised This Month: $183 Target: $400
 45% 

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Bugsy
Forum: Scripting Help Today, 00:12
Replies: 18
Views: 485
Posted By Bugsy
Re: socket_* returns Bad Request

Using this page (https://stackoverflow.com/questions/50310577/cant-copy-data-inside-of-callback-for-curlopt-writefunction)for reference, it looks like the missing piece was returning a value in the...
Forum: Scripting Help Yesterday, 18:59
Replies: 18
Views: 485
Posted By Bugsy
Re: socket_* returns Bad Request

I missed that option as the documentation for curl is garbage. I struggled to find an example for something as simple as how to retrieve the incoming HTTP response packet. The above code is around an...
Forum: Scripting Help Yesterday, 17:28
Replies: 18
Views: 485
Posted By Bugsy
Re: socket_* returns Bad Request

Here's a curl example that you may be able to use. I converted my VAC Ban Status plugin today.


#include <amxmodx>
#include <curl>

public plugin_init()
{
register_concmd( "curltest" ,...
Forum: Approved Plugins Yesterday, 16:54
Replies: 196
Views: 91,642
Posted By Bugsy
Re: VAC Ban Status

v0.4 beta is published, please let me know if you run into any issues.
Forum: Approved Plugins 01-22-2021, 23:07
Replies: 196
Views: 91,642
Posted By Bugsy
Re: VAC Ban Status

Is anyone knowledgeable with Curl that could help me out with converting this plugin?

Edit: Figured it out, update with curl coming soon.
Forum: Scripting Help 01-22-2021, 12:01
Replies: 18
Views: 485
Posted By Bugsy
Re: socket_* returns Bad Request

You are formatting your http request incorrectly
Forum: Scripting Help 01-21-2021, 09:10
Replies: 18
Views: 485
Posted By Bugsy
Re: socket_* returns Bad Request

Google it.. "how to see http packets in [browser name]"
Forum: Scripting Help 01-21-2021, 09:02
Replies: 9
Solved switch/if q
Views: 264
Posted By Bugsy
Re: switch/if q

https://forums.alliedmods.net/showthread.php?t=46364
Forum: New Plugin Submissions 01-21-2021, 00:08
Replies: 6
Views: 355
Posted By Bugsy
Re: Starting Weapons Deluxe v1.0

I understand you are new to AMX-X, but there's tons and tons of redundant code here that you can eliminate. As you were coding this and realizing you were writing the same lines over and over again,...
Forum: Scripting Help 01-20-2021, 23:00
Replies: 13
Views: 325
Posted By Bugsy
Re: nvault double dimonsional array

Use nVault Array (https://forums.alliedmods.net/showthread.php?t=291662) with an enum-size array
Forum: Scripting Help 01-20-2021, 22:16
Replies: 18
Views: 485
Posted By Bugsy
Re: socket_* returns Bad Request

Have you tested this website by manually going to the URL with an IP at the end?

http://mywebsite.com/bans/123.45.67.89

If it works, you may need to pass it differently. Check to see how your...
Forum: Scripting Help 01-20-2021, 22:10
Replies: 1
Views: 86
Posted By Bugsy
Re: Check if user doesn't have weapon or not

http://www.amxmodx.org/api/amxmodx/user_has_weapon
Forum: Scripting Help 01-20-2021, 17:50
Replies: 9
Solved switch/if q
Views: 264
Posted By Bugsy
Re: switch/if q

LondoN's solution is not ideal here, it's what people typically do just to have less lines of code. While I'm a fan of ternary expressions, they should not replace an if-statement.

Example:
...
Forum: Scripting Help 01-19-2021, 23:22
Replies: 9
Solved switch/if q
Views: 264
Posted By Bugsy
Re: switch/if q

Agree with OciXCrom, if I understand correctly just do the below. This will always toggle on to off and off to on.

public randommenu_handler(id, key)
{
switch( key )
{
case 0:
{ ...
Forum: Approved Plugins 01-18-2021, 23:36
Replies: 196
Views: 91,642
Posted By Bugsy
Re: VAC Ban Status

I will look into this
Forum: Scripting Help 01-16-2021, 17:30
Replies: 9
Views: 339
Posted By Bugsy
Re: Read data

Tell us specifically what you are trying to do and we may be able to recommend a better and more efficient way to do it.

I understand you want to read console messages, but that does not answer my...
Forum: Scripting Help 01-16-2021, 10:40
Replies: 9
Views: 339
Posted By Bugsy
Re: Read data

Agree with fysiks. Explain what you're ultimately trying to do, there may be a much simpler way instead of scanning every single server message.
Forum: Scripting Help 01-14-2021, 00:54
Replies: 4
Views: 279
Posted By Bugsy
Re: set_task help2

Did you change 'id' to '5012' in set_task()?

public client_authorized(id)
{
if(!stopplugin)
{
set_task(get_pcvar_float(plugin_checktime),"prethink",5012,"",0,"b")
}
}
Forum: Scripting Help 01-13-2021, 22:09
Replies: 1
Views: 158
Posted By Bugsy
Forum: Scripting Help 01-13-2021, 09:24
Replies: 2
Views: 152
Posted By Bugsy
Re: Dynamic Array run time error

Yes, random( 10 ) would give you a value from 0 to 9 so for array index purposes it's perfect. Use random() with ArraySize() inside of it.
Forum: Scripting Help 01-10-2021, 11:26
Replies: 3
Views: 227
Posted By Bugsy
Re: get_pdata_int(ent, m_iId, 4) returns invalid value

Yeah, I wish the compiler would catch duplicate variable definitions. It can drive you crazy trying to figure out why code is not working when you know it is otherwise correct.
Forum: Scripting Help 01-10-2021, 11:10
Replies: 3
Views: 227
Posted By Bugsy
Re: get_pdata_int(ent, m_iId, 4) returns invalid value

Your problem is here:

public fw_weapon_deploy(ent)
{
new id = pev(ent, pev_owner), ent;
Forum: Scripting Help 01-09-2021, 00:56
Replies: 17
Views: 542
Posted By Bugsy
Re: Help coding Godmode for 5secs

Completely missed that, it's been a long day. Edited my post
Forum: Scripting Help 01-09-2021, 00:22
Replies: 17
Views: 542
Posted By Bugsy
Re: Help coding Godmode for 5secs

I don't think you need to check if connected/alive in cmd start...and you never need to do both as alive has a connected check built in so you'd only ever need to check alive. I'd remove the entire...
Forum: Scripting Help 01-08-2021, 22:04
Replies: 6
Views: 208
Posted By Bugsy
Re: random_num

Here's a basic method of doing it. You will need more code so more than 1 player can run a giveaway at a time.


#include <amxmodx>
#include <amxmisc>

new const Version[] = "0.1";

const...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 10:58.


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