Raised This Month: $19 Target: $400
 4% 

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: Lee
Forum: Trash 05-16-2009, 12:40
Replies: 19
Views: 7,487
Posted By Lee
Re: get_user_weapon2()

The syntax for both is the same; it depends on whether the function to which you pass func() as a parameter expects a value or a reference to an array.

console_print("%c %s", func(), func());...
Forum: Off-Topic 05-16-2009, 10:38
Replies: 2,786
Views: 464,251
Posted By Lee
Re: Funniest Posts

+karma

Oh, wait.
Forum: Trash 05-16-2009, 09:50
Replies: 19
Views: 7,487
Posted By Lee
Re: get_user_weapon2()

Calling a native such as format eliminates the purpose of using string slicing (https://forums.alliedmods.net/showthread.php?t=61367) instead of replace().
Forum: Scripting Help 05-10-2009, 11:04
Replies: 16
Views: 5,612
Posted By Lee
Re: [FATAL ERROR] (shutting down) what does this mean..

for(i = 0; i < iNum; i++)

You have an extra iteration of the loop. The is_user_connected() call is also redundant. You can probably remove get_players() and the loop entirely and follow...
Forum: Scripting Help 05-10-2009, 10:30
Replies: 19
Views: 4,045
Posted By Lee
Re: Random player/s.

Hah, this forum never changes, discussing minor details about code that doesn't even meet the requirements.

padilha007: you've been told what's wrong with your code. You're using set_task() as a...
Forum: Scripting Help 05-09-2009, 15:53
Replies: 19
Views: 4,045
Posted By Lee
Re: Random player/s.

Indeed (depending on what approach to collecting valid players is taken). Here's an efficient and simple solution to a simple problem.

#include <amxmodx>

new bool:isConnected[33];

public...
Forum: Scripting Help 05-09-2009, 15:28
Replies: 19
Views: 4,045
Posted By Lee
Re: Random player/s.

I don't know why you guys are using set_task() and recursion when a simple while loop would be more efficient.

hleV, do you not see the problem with that? Since player indexes aren't necessarily...
Forum: Trash 05-08-2009, 08:12
Replies: 5
Views: 1,234
Posted By Lee
Re: Question for those who believe all religion should be abolished?

Most people are born into a religion, they don't "choose" it.
Forum: Off-Topic 04-23-2009, 06:50
Replies: 15
Views: 3,174
Posted By Lee
Re: POLL: What do you think will happen to Counter Strike 1.6 in 5 years?

That's what people were saying five years ago and they were right, but Counter-Strike still competes with the largest blockbusters released today, but unlike them has proven its unmatched longevity....
Forum: Off-Topic 04-23-2009, 02:09
Replies: 15
Views: 3,174
Posted By Lee
Re: POLL: What do you think will happen to Counter Strike 1.6 in 5 years?

There's no "things will stay largely as they are" option.
Forum: Off-Topic 04-03-2009, 14:42
Replies: 50
Views: 5,422
Posted By Lee
Re: People who can't speak / spell in english

What's your excuse? You shouldn't throw stones if you live in a glass house.
Forum: Off-Topic 03-25-2009, 18:15
Replies: 30
Views: 5,066
Posted By Lee
Re: What about your eyes?

I was wondering how what I've since learnt is called visual acuity is calculated - so I looked it up. The two figures don't refer to each eye and you'll be pleased to know 20/15 is actually superior...
Forum: Scripting Help 01-06-2009, 17:53
Replies: 8
Views: 1,724
Posted By Lee
Re: Is it possible to optimize this code?

Yes, of course, but he's currently doing the same thing whether it's a command we're interested in or someone talking about their cat that just got run over.
Forum: Scripting Help 01-06-2009, 17:01
Replies: 8
Views: 1,724
Posted By Lee
Re: Is it possible to optimize this code?

anakin_cstrike, if you iterate over g_Commands in plugin_init() and use said loop to call register_clclmd() and still retain one public fuction, you keep the extensibility without having to pass...
Forum: Trash 01-05-2009, 02:50
Replies: 15
Views: 2,620
Posted By Lee
Re: /b/ Thread

To say that /b/ is a 4chan board is to say that all Off-Topic / General Chat forums belong to AlliedModders.
Forum: Scripting Help 12-27-2008, 15:36
Replies: 21
Views: 2,353
Posted By Lee
Re: [HELP] Switching two variables

Assignment XOR (exclusive disjunction).

http://en.wikipedia.org/wiki/XOR
http://en.wikipedia.org/wiki/XOR_swap_algorithm
Forum: Suggestions / Requests 12-27-2008, 14:24
Replies: 13
Views: 4,679
Posted By Lee
Re: Limtied admin Slap / Slay / Ban / Kick

icanhascommandlimiterplugin.sma adds limits for amx_banip and amx_addban and also defaults the four cvars to the values you asked for originally.

plmenu_edited.sma adds command restriction support...
Forum: Scripting Help 12-27-2008, 11:57
Replies: 7
Views: 1,377
Posted By Lee
Re: Syntax info needed

As for your question of "can you use {variable} to create an array?", it would have been a lot quicker for you to test it and find out.

If you're not going to call change_task(), remove_task() or...
Forum: Scripting Help 12-22-2008, 18:19
Replies: 17
Views: 2,579
Posted By Lee
Re: How to make a ini file?

A file extension is nothing but a piece of metadata that tells the operating system which program should be used to read a file that uses a particular encoding technique. It has no bearing on how the...
Forum: Code Snippets/Tutorials 12-22-2008, 16:28
Replies: 11
Views: 8,021
Posted By Lee
Re: String Slicing

Another use for this technique is to store multiple items of data (strings and/or integers) in one variable. This is useful when you're only able to pass one array to a function or native, such as...
Forum: Code Snippets/Tutorials 12-22-2008, 16:10
Replies: 292
Views: 128,482
Posted By Lee
Re: New XP Mod tutorial

new AuthID[35]
get_user_authid(id,AuthID,34)

Curly braces are usually only used to denote where a loop, conditional, or enumeration block starts and ends.

Of course, for a SteamID to be 34...
Forum: Off-Topic 12-22-2008, 11:41
Replies: 2
Views: 855
Posted By Lee
Re: Compiler error?

/*

DONT EDIT ANYTHING THERE OR =

_________e$$$$$$e.
_______e$$$$$$$$$$e
______$$$$$$$$$$$$$$
_____d$$$$$$$$$$$$$$b
_____$$$$$$$$$$$$$$$$
____4$$$$$$$$$$$$$$$$F
Forum: Off-Topic 12-19-2008, 19:28
Replies: 16
Views: 2,696
Posted By Lee
Re: Rant Thead

You have chosen to spend time posting a poorly written rant to an internet message board when you could been acting constructively. Computing is a field that advances and changes very quickly and,...
Forum: Scripting Help 12-19-2008, 18:25
Replies: 4
Views: 2,282
Posted By Lee
Re: get_user_rendering ? oO

&Float:flColor[3]

He's saying that the above ampersand is superfluous because when passing arrays, its address rather than value is what's supplied to the function in all cases.

On compilation...
Forum: Off-Topic 12-15-2008, 06:35
Replies: 33
Views: 5,876
Posted By Lee
Re: Batter Anti Virus Software?

I currently have only one tab open and Firefox is consuming 328 MB of RAM and 349 MB of my page file, both down by around 100 MB since I had lot of tabs open. That's what BAILOPAN calls "aggressive...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 21:45.


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