What are the advantages of using CallLocalFunction
#4

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Second is faster and thats all
Second way is faster ?
Than why should anyone ever use this function ? because I see many use it

EDIT
Quote:
Originally Posted by Stinged
Посмотреть сообщение
The second one is a lot faster, but you have to know the function's name, and if it exists (You can use #if to check that, but you still have to know the name)

One of the important uses of CallLocalFunction is in command processing, since it calls a function with this format:
cmd_%s(playerid, params[]) *%s = command name

Since the player enters the command name, you replace %s with what they enter (using format, or some other method of processing), and then you use CallLocalFunction.
Now I get it, thanks
Reply


Messages In This Thread
What are the advantages of using CallLocalFunction - by NeXoR - 01.11.2016, 19:57
Re: What are the advantages of using CallLocalFunction - by Jefff - 01.11.2016, 20:13
Re: What are the advantages of using CallLocalFunction - by Stinged - 01.11.2016, 20:16
Re: What are the advantages of using CallLocalFunction - by NeXoR - 01.11.2016, 20:16
Re: What are the advantages of using CallLocalFunction - by Spmn - 01.11.2016, 20:20
Re: What are the advantages of using CallLocalFunction - by SickAttack - 01.11.2016, 21:28
Re: What are the advantages of using CallLocalFunction - by NeXoR - 01.11.2016, 21:43

Forum Jump:


Users browsing this thread: 5 Guest(s)