Rules FAQ Members List Search Register Login

 Raised This Month: \$202 Target: \$400 50%

 Showing results 1 to 25 of 500 Search took 0.04 seconds. Search: Posts Made By: Bugsy
 Forum: Code Snippets/Tutorials 09-19-2021, 11:12 Replies: 100 Views: 58,416 Posted By Bugsy Re: [TUT] Bits, Bit-fields, and Bit-wise Operators I'm struggling to find the benefit/reason for a bit-sum here, you could use a global integer for this, as fysiks suggested. An integer would always only cost 32 bits of memory, where if you want to...
 Forum: General 09-16-2021, 21:24 Replies: 4 Views: 217 Posted By Bugsy Re: Learning AMXX scripting It's definitely going to take a little time, but if you put the time in to learn the basic principles, everything starts to make sense. For example, when you learn that you can code things to happen...
 Forum: Code Snippets/Tutorials 09-16-2021, 09:13 Replies: 100 Views: 58,416 Posted By Bugsy Re: [TUT] Bits, Bit-fields, and Bit-wise Operators Look here , post 49 and forward https://forums.alliedmods.net/showthread.php?t=90507&page=2
 Forum: Code Snippets/Tutorials 09-16-2021, 08:59 Replies: 100 Views: 58,416 Posted By Bugsy Re: [TUT] Bits, Bit-fields, and Bit-wise Operators It's been covered before somewhere on the forums, but you'd need to create a macro or function to do this. Basically you'd use an array to get bits in excess of 32. So if you need 64 bits, you have...
 Forum: Code Snippets/Tutorials 09-16-2021, 00:23 Replies: 100 Views: 58,416 Posted By Bugsy Re: [TUT] Bits, Bit-fields, and Bit-wise Operators Google how many bits are in a byte, then multiply that value by 4. You can do extra coding to extend beyond this 'enum limit' if needed.
 Forum: Code Snippets/Tutorials 09-15-2021, 06:07 Replies: 100 Views: 58,416 Posted By Bugsy Re: [TUT] Bits, Bit-fields, and Bit-wise Operators Yes, the limiting factor is the number of bits in a 4-byte cell. HamletEagle, I think it's better to say each enum item is 1 bit.
 Forum: Scripting Help 09-14-2021, 22:43 Replies: 7 Views: 254 Posted By Bugsy Re: Only To Real Devlopers ;) Why are you asking me? Compile it and tell us.
 Forum: Scripting Help 09-14-2021, 20:55 Replies: 7 Views: 254 Posted By Bugsy Re: Only To Real Devlopers ;) These errors are not complicated, just look at what they tell you. You are posting in scripting help so I assume you are scripting the fixes yourself. You have 2 functions with the same name,...
 Forum: Suggestions / Requests 09-12-2021, 14:07 Replies: 2 Views: 319 Posted By Bugsy Re: Answer correctly or kick Moved to suggestions/requests
 Forum: General 09-11-2021, 11:26 Replies: 3 Views: 401 Posted By Bugsy Re: Natives CPU? Why, are you calling it every frame where it may matter? Or are you running your server on a calculator's CPU? I'd just follow best practices when scripting and not worry about it.
 Forum: Scripting Help 08-29-2021, 11:37 Replies: 3 Views: 446 Posted By Bugsy Re: Problem with freezing Where is HandleSay? How is CmdFreeze() getting linked to HandleSay()? Please post the full plugin. Is this someone elses plugin that you're trying to modify? If so I'd just start from scratch. ...
 Forum: Scripting Help 08-23-2021, 19:13 Replies: 14 Views: 2,759 Posted By Bugsy Re: How to detect numbers and letters in an string? Use a loop to check each character in the string. Check that the char is between 0-1, a-z, A-Z. Many ways to do this. bool:IsStringLettersAndOrNumbers( const szString[] ) { new...
 Forum: Suggestions / Requests 08-23-2021, 16:10 Replies: 11 Views: 1,534 Posted By Bugsy Re: Read .Nav File via Plugin Looks like way too much work.
 Forum: Suggestions / Requests 08-23-2021, 12:05 Replies: 5 Views: 369 Posted By Bugsy Re: Noob Plugin Roger, updated
 Forum: Suggestions / Requests 08-23-2021, 11:49 Replies: 11 Views: 1,534 Posted By Bugsy Re: Read .Nav File via Plugin Is the file structure documented anywhere? If so, I can likely read from the file. But do you really think you'd be able to use it?
 Forum: Suggestions / Requests 08-23-2021, 11:37 Replies: 5 Views: 369 Posted By Bugsy Re: Noob Plugin World entity is 0, no? Where would I get an index out of bounds? g_Killed[] has a range of 0 to 32.
 Forum: Suggestions / Requests 08-22-2021, 18:00 Replies: 5 Views: 369 Posted By Bugsy Re: Noob Plugin This will show a HUD if a player reaches 10+ deaths in a row (excluding suicides/worldspawn deaths), displaying for each kill 10 and beyond. Untested #include #include ...
 Forum: Scripting Help 08-22-2021, 12:23 Replies: 10 Solved Get remain time problem Views: 421 Posted By Bugsy Re: Get remain time problem This seems to work consistently. public Test() { const iActionTime = 22; new iHours , iMinutes , iSeconds , szTime[ 9 ] , iUnixTSNow , iUnixTSAction; iUnixTSNow = parse_time(...
 Forum: Scripting Help 08-22-2021, 00:23 Replies: 10 Solved Get remain time problem Views: 421 Posted By Bugsy Re: Get remain time problem This needs more work, it will not always be accurate.
 Forum: Scripting Help 08-21-2021, 21:34 Replies: 4 Views: 308 Posted By Bugsy Re: Gravity (set_user_gravity) Not tested #include #include #include #define NORMAL_GRAVITY 1.0 #define LOW_GRAVITY 0.5
 Forum: Scripting Help 08-21-2021, 21:06 Replies: 13 Views: 982 Posted By Bugsy Re: SZ_GetSpace: overflow on Nick Problem Why are you saying he prefers to support gays? Why does the icon bother you?
 Forum: Scripting Help 08-21-2021, 20:31 Replies: 10 Solved Get remain time problem Views: 421 Posted By Bugsy Re: Get remain time problem Try this (https://forums.alliedmods.net/showpost.php?p=2755889&postcount=11)
 Forum: Scripting Help 08-21-2021, 20:03 Replies: 10 Solved Get remain time problem Views: 421 Posted By Bugsy Re: Get remain time problem So the 22 corresponds to the 22nd hour of the current day?
 Forum: Scripting Help 08-21-2021, 20:01 Replies: 10 Solved Get remain time problem Views: 421 Posted By Bugsy Re: Get remain time problem Is this 22 event stored via unix timestamp? What is the initial value/format I am working with to get remaining time?
 Forum: Scripting Help 08-21-2021, 19:58 Replies: 10 Solved Get remain time problem Views: 421 Posted By Bugsy Re: Get remain time problem Give an example of input and output. Based on your request, you only want the number of minutes remaining in the current hour?
 Showing results 1 to 25 of 500

 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Server Discussion     Source Servers (SRCDS)     HL1 Servers (HLDS) AMX Mod X     News     Bug Reports     General     Off-Topic     Plugins         Suggestions / Requests         Approved Plugins         New Plugin Submissions         Unapproved/Old Plugins         Translation Request         High-Traffic Plugins             GunGame             UAIO (Ultimate All-In-One Plugin)             xREDIRECT             CSDM             AMX Super             RuneMod             Zombie Plague Mod             SuperHero Mod                 News                 Tech Support                 Scripting Help                 Off-Topic / General Chat                 Heroes                     Suggestions / Requests                     Approved Heroes                     New Submissions                     Unapproved/Old Heroes                         Module Heroes                     SuperHero Mod Stats - By 123                 (OLD) Bug Reports     Scripting         Scripting Help         Code Snippets/Tutorials         Module Coding     Donor Access SourceMod     News     General     Plugins         Plugins         Unapproved Plugins         Plugin/Gameplay Ideas and Requests         High-Traffic Plugins             SourceMod Anti-Cheat             Zombie:Reloaded             SourceBans / SourceBans++             VSH / Freak Fortress             Store             SM_Hosties             HLstatsX:CE     Scripting     Extensions     Snippets and Tutorials     Donor Access     Metamod: Source         Metamod:Source Plugins         Metamod:Source Questions         Coding MM:S Plugins & SM Extensions Hosted Stuff     Asherkin's Plugins         TFDodgeball         TF2Items         SteamTools     Bail's Plugins         CSDM         CS:S DM Off-Topic & Trash     Off-Topic     Trash

All times are GMT -4. The time now is 00:33.

 DMCA - Archive - Top