Posts: 7
Threads: 0
Joined: Nov 2012
Reputation:
0
offtopic: DONE finally i have all my dini system in my database ...
but im having a new problem how can i put an range to the checpoints because no matter how far i am from it, it still show on the minimap
Posts: 7
Threads: 0
Joined: Nov 2012
Reputation:
0
thx ^^
i think i will be away from this topic now ><
Posts: 7
Threads: 0
Joined: Nov 2012
Reputation:
0
i dont know, in fact most of the code was made by an friend, but its working fine until now so i think its fine
offtopic: y_less's posts, OVER NINE THOUSAND!!!!
Posts: 31
Threads: 6
Joined: Sep 2009
Reputation:
0
Alright, two questions:
1. How do I make it so PlayeAudioStreamForPlayer is sent within a 5 meter radius when a player types the command?
2. How do I StopAudioStreamForPlayer when it's played for 10 seconds?
Thanks
Posts: 2,698
Threads: 37
Joined: Mar 2012
Reputation:
0
Hello,
How do the CallLocalFunction and CallRemoteFunction differ from each other? I saw in wiki that CallRemoteFunction is to call a function created. But I tried both of those functions and saw they do perform like how the other performs. So, isn't there any difference between them?
Posts: 966
Threads: 5
Joined: Jul 2011
Reputation:
0
The difference is that CallLocalFunction is not able to find any functions from other scripts on the server. For example if you have a public function "DoSomething" in one filterscript, you can do CallRemoteFunction("DoSomething", ...) in the gamemode or any other filterscripts (and undoubtedly the same filterscript as well). But CallLocalFunction would not work for functions outside of the loaded script's space.
CallRemoteFunction can be used to share data between scripts for example, but I'm fairly sure PVars (or perhaps GVars from Incognito's plugin or globalized versions of the datasets created using the CSTL plugin) do a better job at this.