Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
Out of curiosity
Tee
Gangsta
Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
#1
10.06.2012, 21:32
Out of curiosity I'm asking what the "&" in a function does.
Example:
pawn Code:
gettime
(
&
hour,
&
minute,
&
second
)
;
Find
Reply
Revo
Huge Clucker
Posts: 244
Threads: 2
Joined: Apr 2012
Reputation:
0
#2
10.06.2012, 21:34
To my knowledge (And I'm not certain about it) It indicates its a float.
Find
Reply
milanosie
High-roller
Posts: 1,662
Threads: 199
Joined: Dec 2011
Reputation:
0
#3
10.06.2012, 21:34
Quote:
Originally Posted by
Tee
Out of curiosity I'm asking what the "&" in a function does.
Example:
pawn Code:
gettime
(
&
hour,
&
minute,
&
second
)
;
don't think it does anything?
I think you mean the % function right?
Find
Reply
Tee
Gangsta
Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
#4
10.06.2012, 21:36
Quote:
Originally Posted by
BuuGhost
To my knowledge (And I'm not certain about it) It indicates its a float.
It's not a float.
Quote:
Originally Posted by
milanosie
don't think it does anything?
I think you mean the % function right?
No, I mean "&".
Find
Reply
Joe Staff
High-roller
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
#5
10.06.2012, 21:38
That means that the variable is read and write, where other wise the variable is read only (within the function).
you would use that instead of return if you have multiple returns.
Find
Reply
Tee
Gangsta
Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
#6
10.06.2012, 21:39
May I have an example?
Find
Reply
JaTochNietDan
High-roller
Posts: 2,502
Threads: 26
Joined: Apr 2007
Reputation:
0
#7
10.06.2012, 21:40
Quote:
Originally Posted by
Tee
No, I mean "&".
It is explained in this tutorial with an example:
https://sampforum.blast.hk/showthread.php?tid=321465
Please try searching in the future.
Find
Reply
Tee
Gangsta
Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
#8
10.06.2012, 21:47
I did try but didn't really know the right keywords, thanks.
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help