Raised This Month: $71 Target: $400
 17% 

Showing results 1 to 25 of 500
Search took 0.12 seconds.
Search: Posts Made By: Bugsy
Forum: Scripting Help 10-10-2018, 18:08
Replies: 7
Views: 231
Posted By Bugsy
Re: Modify a file using another file

You need to scan the files and write to a new file if your condition is met; once done, you then delete file1 and rename the new file to the file1 filename. With your code you are adding lines to the...
Forum: Scripting Help 10-07-2018, 21:24
Replies: 5
Views: 147
Posted By Bugsy
Re: Run time error 10: native error (native "cs_get_weapon_burst")

Edited above code, replace message with whatever you want.
Forum: Scripting Help 10-07-2018, 15:44
Replies: 5
Views: 147
Posted By Bugsy
Re: Run time error 10: native error (native "cs_get_weapon_burst")

You are hooking the event on an individual weapon level but then loop a check all players. You should instead do the checking on an individual player/weapon bases when the event fires. Also, this...
Forum: Suggestions / Requests 10-07-2018, 12:50
Replies: 2
Views: 108
Posted By Bugsy
Re: podbot join delay

podbot.cfg

# Set the below value to delay bots re-join after new map start.
# Default is 10.
pb_mapstartbotdelay 3


@OP, please do not edit/delete your post when you figure out the answer....
Forum: Suggestions / Requests 10-06-2018, 16:43
Replies: 54
Solved Dhud error
Views: 676
Posted By Bugsy
Re: Dhud error

Please do not delete your posts once solved, others could benefit who had the same issue.
Forum: Scripting Help 10-06-2018, 13:56
Replies: 30
Views: 541
Posted By Bugsy
Re: [Help] sizeof Array (iOrigins)

No, compiling locally
Forum: Scripting Help 10-06-2018, 13:28
Replies: 30
Views: 541
Posted By Bugsy
Re: [Help] sizeof Array (iOrigins)

Yup

AMX Mod X Compiler 1.8.3-dev+4748
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Header size: 272 bytes
Code size: 748 bytes
Data...
Forum: Scripting Help 10-06-2018, 11:46
Replies: 30
Views: 541
Posted By Bugsy
Re: [Help] sizeof Array (iOrigins)

Compiles fine for me, did you use the array in my code? Post your code
Forum: Scripting Help 10-06-2018, 11:21
Replies: 30
Views: 541
Posted By Bugsy
Re: [Help] sizeof Array (iOrigins)

Do this?


#include <amxmodx>

enum
{
x,
y,
z
Forum: Scripting Help 10-06-2018, 10:48
Replies: 30
Views: 541
Posted By Bugsy
Re: [Help] sizeof Array (iOrigins)

Well, you cannot dictate how the system should work. You can only send messages in a way that the system expects them. If you want to send messages with multiple coordinates, send multiple messages...
Forum: Scripting Help 10-06-2018, 10:29
Replies: 30
Views: 541
Posted By Bugsy
Re: [Help] sizeof Array (iOrigins)

Doesn't the message only want 1 origin? You are sending way too much information.

Try this:

enum
{
x,
y,
z
}
Forum: Scripting Help 10-06-2018, 10:24
Replies: 30
Views: 541
Posted By Bugsy
Re: [Help] sizeof Array (iOrigins)

This is what you are doing with your arrays. You have them set up incorrectly.
public create_light()
{
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(TE_DLIGHT);

//for(new...
Forum: New Plugin Submissions 10-05-2018, 21:25
Replies: 55
Views: 1,544
Posted By Bugsy
Re: Top Flags [05/10/2018]

Something like this. It would use the nVault timestamp as the timestamp of the last reset which is accurate down to the second. This would also cover you for example if someone picked 31 as the day,...
Forum: New Plugin Submissions 10-05-2018, 20:59
Replies: 55
Views: 1,544
Posted By Bugsy
Re: Top Flags [05/10/2018]

Oh, I'm sorry, I didnt realize you had the variable/cvar to determine if it should reset based on the day. Still, your plugin would require no map changes for this to work. I would implement another...
Forum: New Plugin Submissions 10-05-2018, 20:48
Replies: 55
Views: 1,544
Posted By Bugsy
Re: Top Flags [05/10/2018]

Fair enough, these are just my opinions which I'd take with a grain of salt, I have not run a server in close to 10 years. Unless the server is really active I would think the rankings would...
Forum: New Plugin Submissions 10-05-2018, 19:06
Replies: 55
Views: 1,544
Posted By Bugsy
Re: Top Flags [05/10/2018]

You could make it store the current date in nvault(). At plugin_init(), check to see if the date is now different and if so reset stats and update the date stored in nvault(). This would allow normal...
Forum: New Plugin Submissions 10-05-2018, 18:26
Replies: 55
Views: 1,544
Posted By Bugsy
Re: Top Flags [05/10/2018]

Your set_task() to reset rankings occurs 24 hours from when your server starts or map changes. If maps change every 30 minutes (or whatever) like most servers, stats will never reset.

Also make it...
Forum: Scripting 10-05-2018, 18:18
Replies: 2
Views: 140
Posted By Bugsy
Forum: New Plugin Submissions 10-05-2018, 17:50
Replies: 55
Views: 1,544
Posted By Bugsy
Re: Top Flags [05/10/2018]

I would put in a requirement somewhere in your plugin description that the server must run maps that never change, or will have maps that run for over 24 hours each.
Forum: Scripting Help 10-05-2018, 17:42
Replies: 30
Views: 541
Posted By Bugsy
Re: [Help] sizeof Array (iOrigins)

This is not that confusing, what I posted here (https://forums.alliedmods.net/showpost.php?p=2618146&postcount=4) is enough to store your origins and RGB colors in an organized way.



new...
Forum: Scripting Help 10-05-2018, 16:00
Replies: 30
Views: 541
Posted By Bugsy
Re: [Help] sizeof Array (iOrigins)

Yeah you have 2 for loops using sizeof, my statement applied to only the nested loop, my fault for not pointing that out
Forum: Scripting Help 10-05-2018, 15:34
Replies: 13
Views: 319
Posted By Bugsy
Re: [ H3LP ] Bits random num

If you can provide a real world gaming example then you can get a better answer. Avoid talking in code.
Forum: Scripting Help 10-05-2018, 09:22
Replies: 10
Views: 440
Posted By Bugsy
Re: 3 dim array ?

I can take a look at this later. Is your only issue the speed at which the setting of origins is happening?
Forum: Scripting Help 10-05-2018, 06:05
Replies: 30
Views: 541
Posted By Bugsy
Re: [Help] sizeof Array (iOrigins)

sizeof(iX) will give you the number of origins in the array, here you only care about x,y,z for the one origin. Use sizeof(iX[])
Forum: Scripting Help 10-04-2018, 17:34
Replies: 30
Views: 541
Posted By Bugsy
Re: [Help] sizeof Array (iOrigins)

What HamletEagle said still applies. You would access the specific origin with the first dimension, and the individual values with the second.

Variable[ Which Item ][ Sub-value ]


new...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 04:35.


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