What are the advantages of using CallLocalFunction
#3

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.
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: 3 Guest(s)