Info Saving System
#4

Quote:
Originally Posted by ******
Посмотреть сообщение
Well the internal permissions are checked regardless of what other code is in the command, so yes they're more efficient simply because not using them is just more code. However, even if that were not the case I've seen commands with multiple checks for all sort of different conditions " is in one of seven teams", "is an admin" etc, which are all wrapped up in to a single check when using the inbuilt permissions.
Okay, great. I personally prefer the built-in permissions. One more question - and you don't need to answer it if you're too busy, I can see how I add permissions to an individual, but when I'm looking to add a failure message would you then recommend using Command_GetPlayerNamed? I'm just a little confused about Command_GetPlayerNamed, does it return a Boolean?

In other words, would you use it like:

Код:
if(Command_GetPlayerNamed(hi, playerid)) == 0) return SendClientMessage(playerid, RED, "Bye.");
Or is it necessary to use it under the command itself?

Sorry for barraging you with question - like I said if you're busy don't bother but I really appreciate the help. I'm more than capable of using y_commands, I just want to gain a better understanding of its internal features to be able to use it more efficiently. I've checked out a few tutorials and still have yet to find one using the internal permissions.
Reply


Messages In This Thread
Info Saving System - by TKZ227 - 19.04.2013, 15:49
Re: Info Saving System - by Yashas - 19.04.2013, 15:58
Re: Info Saving System - by TKZ227 - 19.04.2013, 16:02
Re: Info Saving System - by TKZ227 - 19.04.2013, 16:12

Forum Jump:


Users browsing this thread: 3 Guest(s)