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
about define MAX_
extender1987
Big Clucker
Posts: 123
Threads: 47
Joined: Dec 2013
Reputation:
0
#1
10.06.2015, 23:04
What is the difference if I define MAX_ with parenthesis or witout for example #define MAX_TURFS (65) and why not #define MAX_TURFS 65 ??
Find
Reply
Vince
Spam Machine
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
#2
10.06.2015, 23:17
It is only really important if you intend to calculate with the number as it rules out any unintended alterations. But even if you don't intend to calculate, it's good practice to put it between parenthesis, anyway. Couldn't hurt.
Example on the wiki:
https://sampwiki.blast.hk/wiki/Keywords:...ives#.23define
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