View Single Post
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 01-02-2017 , 07:46   Re: Programming for starters
Reply With Quote #103

http://wiki.c2.com/?GlobalVariablesAreBad

Doing my best, sir.

One more question. In 'Array of Strings' .
PHP Code:
//To define an array of strings that you will assign a value to when defining:
new szString[][] = { "this" "is" "an" "array" "of" "strings" }
//strings are then accessed via the index of string. example szString[0] = "this", szString[1] = "is"

//If values assigned during run-time (example, for storing player names or steamID's when they connect)
new szString[number of strings][length of longest string
should in the 2-dimension string be this?
PHP Code:
new szString[][] = { "this" "is" "an" "array" "of" "strings""0" 
As, Quin had said there is always a 'NULL' character. Should "0" be there too?
__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.

Last edited by JoKeR LauGh; 01-02-2017 at 07:47.
JoKeR LauGh is offline