16
mIRC/pawn Scripting / Re: some questions
« on: April 12, 2010, 09:36:32 pm »
http://forum.vicecitymultiplayer.com/index.php?topic=135.0
sethr and setmin
sethr and setmin
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
thats why i keep saying pawn failedInstead of improving it as a tester.
Emmmm?SetWorldTime works only in OnGameModeInit and can only set hour. You can't make a working clock with it.
a.) Why is the ingame clock not working with GUPS 1.15?Functions to set time will only be avaliable in 0.4.
b.) Is it possible that nobody can see the commands with !Um, what for? Their main purpose is to be visible to the main chat. But, anyway, the answer is "yes": you will have to just put "return 0" in OnPlayerText (added in 0.4 too).
c.) Can I make a "/c s" say command that only people arround someone can hear it. Like on SA:MP RP Servers.You can get distances of all the players to the target player and if distance < some value then SendClientMessage to them.
elseif ($3 == gravity) {
vcmp.setgravity $1 $4
}
eeh no.MTA:SA
I think you didn't noticed the word "nab". As i don't think a nab had ever seen a programming language in his life.Why would such a person want to make a script?
Yup, No other clients are able to execute them. That's because the mrc language is made for mIRC.Yay!
Oh come on! Everyone knows that LUA Owns ass!Rrright. You work weeks/months on a super complex and cool script and then anyone who joins your server downloads its source code. That's so pro.
I think the difference between floats, strings with these [256] things behind it, and all of the other shitty things in pawn makes nabs confused.It won't confuse anyone who has ever seen a programming language before in his life. Almost every language requires variable type definition. The only difference between, say, C# and Pawn is that in Pawn strings behave as arrays and must have an initialization size. And I've already admitted few times that strings are the weakest part of Pawn, but it will be greatly compensated in 0.4.
I actually never saw any good things at pawn (and i dont mean scripts, i mean the language)Pawn is nicely structured and visually understandable. The only thing I really miss is code collapsing in Pawno. :x
Anyways, I think he got his GUS. Topic Closed?Why, let's have a Pawn vs mrc holywar. They're fun!
Probably because the functionality of PAWN is epic fail, mIRC may not be as good but at least it works properly unlike pawn which can't create pickups whilst the server is running.Yes, r2's Pawn has some issues since it's a debu
pwnt.And you know it. :/
imo mIRC is a whole lot easier then pawn, which needs everything defined and all those other shitty things."Defined"? You mean writing three letters before you first use a variable? :? Well, that's a much greater problem that unnamed variables, some idiotic aliases and code which looks like it was never intended to make sense.
but you know what i miss: miss the easy functions of old config.ini where i can set vehicles - pickups - start weapons - spawnlocations - classes - world boundaries and so on and so on.Yes, the old config file is certainly easier for creating "up and go" scripts where you need nothing but spawns and vehicles. BUT, when you actually need to script something, you will find out that Pawn is way more universal.
when i watch the new r2 client is it like: everything what you wanna configurate have to do in scripting? and no more easy doin like config.ini
1. is there a possibility to do it on r2 (i heard about it)Yes, you still can do it through rcon.
2. can i use the old config.ini on it?No, you can't.