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
For what is the number after #define NAME ?
bustern
Gangsta
Posts: 549
Threads: 123
Joined: Aug 2013
Reputation:
0
#1
23.08.2013, 11:00
So for what is that number ?Example:
#define dialog1
3
Find
Reply
Konstantinos
Spam Machine
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
#2
23.08.2013, 11:02
That means that either you type
3
or
dialog1
will be the same thing (an integer).
Find
Reply
Dragonsaurus
Huge Clucker
Posts: 499
Threads: 4
Joined: Apr 2013
Reputation:
0
#3
23.08.2013, 11:03
Dialogid is 3, and you use #define to somehow rename it.
If you do:
pawn Код:
if
(
dialogid
==
3
)
It is the same as doing:
pawn Код:
if
(
dialogid
==
dialog1
)
Find
Reply
bustern
Gangsta
Posts: 549
Threads: 123
Joined: Aug 2013
Reputation:
0
#4
23.08.2013, 11:19
Thx you guys !
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