Posts: 110
Threads: 16
Joined: Jun 2009
Reputation:
0
Thank you guys, but now there's another small question.What is difference between () and [].Let's say we creating register/login system, so we need logged variable, and we are writing it with playerid, so it looks like that:logged[playerid].So playerid checks player id and finds it, but why we can't write it like this- logged(playerid)?
Posts: 1,501
Threads: 19
Joined: Nov 2007
Reputation:
0
Because the brackets ([]) are used to reference an index in an array. While parenthesis are used for functions. Kinda hard to explain.
Posts: 3,304
Threads: 58
Joined: Sep 2008
Reputation:
0
Is it possible to set an "optional" parameter at a function? Just like the DrawDistance at CreateObject() is optional and has a default value if not set.
Posts: 591
Threads: 121
Joined: Oct 2010
Reputation:
0
How do I make all the players in a team move faster than normal ?
Posts: 244
Threads: 2
Joined: Jul 2010
Reputation:
0
Then you have an FS/include that creates vehicles in the server.
EDIT:
Is there any SoundID that I can use with PlayerPlaySound that will play the sound of an explosion?
Checked the wiki but couldn't find an explosion sound.
Posts: 143
Threads: 10
Joined: Nov 2010
Reputation:
0
Wondering how I could script a private messaging system with a key? Like when player presses something it brings a dialog or something to type id/playername and then message to the ID.
Posts: 11
Threads: 1
Joined: Jan 2011
Reputation:
0
how can i get attachedobjecttovehicle position?
Posts: 1,029
Threads: 96
Joined: May 2010
Reputation:
0
Why when I script something with dialogs I get errors "Undefined symbol ShowPlayerDialog" and "Function lacks forward declaration "OnDialogResponse."?
Posts: 2,200
Threads: 14
Joined: Apr 2009
Reputation:
0
Download the latest server package with the newest includes
Posts: 918
Threads: 148
Joined: Sep 2010
Reputation:
0
Is there a way to reverse words? So to check if a player typed a word reversed...
Posts: 918
Threads: 148
Joined: Sep 2010
Reputation:
0
Looks pretty neat ty, but what is the outputstring?