SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 08/08/2017, 03:04 PM   #1
Bussyman
Big Clucker
 
Join Date: Apr 2017
Posts: 161
Reputation: 0
Default array

Hi,

If i create array

new anystring[ 100 ][ 10 ];

So when i on gamemode anystring in all array slots are null?
Bussyman is offline   Reply With Quote
Old 08/08/2017, 03:14 PM   #2
Misiur
High-roller
 
Misiur's Avatar
 
Join Date: Jul 2009
Location: Poland
Posts: 2,539
Reputation: 552
Default Re: array

Yes.
Misiur is offline   Reply With Quote
Old 08/08/2017, 04:08 PM   #3
OneDay
Huge Clucker
 
Join Date: Sep 2015
Posts: 291
Reputation: 93
Default Re: array

0 not null
OneDay is offline   Reply With Quote
Old 08/08/2017, 06:10 PM   #4
Dayrion
High-roller
 
Dayrion's Avatar
 
Join Date: Jan 2016
Location: France
Posts: 1,781
Reputation: 230
Default Re: array

If you declare an array as a string, only the last character will be null.
Otherwise, the array's slots are 0.
__________________
actor_plus - v4.1.2
I'm a goner, somebody catch my breath,
I'm a goner, somebody catch my breath
Dayrion is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[debug] Attempted to read/write array element at index 90 in array of size 90 HELP ME D: tomasfernandez Scripting Help 3 16/03/2017 05:26 AM
[3D Array] Defining an array entry with another array introzen Scripting Help 3 04/04/2016 07:29 PM
(dFile) error 047: array sizes do not match, or destination array is too small Jack_Leslie Scripting Help 8 01/09/2011 05:32 AM
[SOLVED]error 047: array sizes do not match, or destination array is too small help! Help Archive 7 18/06/2011 08:09 PM
[Sloved]error 047: array sizes do not match, or destination array is too small CoaPsyFactor Help Archive 1 09/06/2011 08:27 PM


All times are GMT. The time now is 09:38 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.