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
Linear Mode
Using single global variable for formatting text
Vince
Spam Machine
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
#9
22.07.2017, 15:35
Quote:
Originally Posted by
Paulice
Declare it as:
PHP код:
new
pStrings
[
MAX_PLAYERS
][
MAX_STRINGS_PER_PLAYER
][
MAX_STRING_LENGTH
];
This pains my eyes. Avoid globals where you can. "The size of the amx" is an irrelevant argument. Should be a couple megabytes tops; the size of an average picture or song.
Find
Reply
«
Next Oldest
|
Next Newest
»
Messages In This Thread
Using single global variable for formatting text
- by
Riwerry
- 22.07.2017, 12:19
Re: Using single global variable for formatting text
- by
jlalt
- 22.07.2017, 12:26
Re: Using single global variable for formatting text
- by
Riwerry
- 22.07.2017, 12:38
Re: Using single global variable for formatting text
- by
BiosMarcel
- 22.07.2017, 12:40
Re: Using single global variable for formatting text
- by
Riwerry
- 22.07.2017, 12:52
Re: Using single global variable for formatting text
- by
iLearner
- 22.07.2017, 13:15
Re: Using single global variable for formatting text
- by
saffierr
- 22.07.2017, 14:10
Re: Using single global variable for formatting text
- by
Paulice
- 22.07.2017, 14:10
Re: Using single global variable for formatting text
- by
Vince
- 22.07.2017, 15:35
Re: Using single global variable for formatting text
- by
Paulice
- 22.07.2017, 15:46
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