@TEAM
Umm, why won't this work?
Code:
|
Bah, I got it..
Code:
But I really wanted to use equali. :( |
Quote:
|
Re: @TEAM
Quote:
but in the console, I find that a bit tedious to say the least, and it is much nicer when you can just type @CT & @T And let your code add the Full Name for Terrorist itself.. My suggestion: Code:
Feel free to use such a method in your plugins!! Makes it easier in console, you could type (for example): amx_command @A amx_command * amx_command @T amx_command @CT amx_command xeroblood amx_command #1 Stuff like that.. I hope that helps! |
@noobie:
Do you really think I was working on that for 3 hours? I was doing other stuff, then I eventually came back to it. @xero: Thanks, I'll learn from that. :D |
Hmm.. This is probably the most noobish of questions I've ever asked.. :oops:
Can you explain how array sizes work? Like, how can szArg[1] hold "TERRORIST"? :P |
Yeah, it is kinda weird in Small C..
If the string is: @TERRORIST Then: [0] == '@' [0] == "@TERRORIST" [1] == 'T' [1] == "TERRORIST" [2] == 'E' [2] == "ERRORIST" etc.. Notice the different use of quotes? With single-quotes, a single character is implied, with double-quotes a string is implied.. However, the string functions expect strings, so always use double-quotes when passing arguments to them.. When used as a string, the index simple denotes the starting point of the string... I hope that makes sense for ya! |
So for when we get the player's name.. [32], that is applying it to each single charactor like in single quotes?
|
Quote:
|
| All times are GMT -4. The time now is 16:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.