[Tutorial] How to make an basic Fuel system
#24

Read pawn-lang.pdf and scroll to page 64:

Quote:

• Progressive initializers for arrays
The ellipsis operator continues the progression of the initialization constants
for an array, based on the last two initialized elements. The ellipsis operator
(three dots, or “...”) initializes the array up to its declared size.
Examples:
Listing: array initializers
new a[10] = { 1, ... } // sets all ten elements to 1
new b[10] = { 1, 2, ... } // b = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
new c[8] = { 1, 2, 40, 50, ... } // c = 1, 2, 40, 50, 60, 70, 80, 90
new d[10] = { 10, 9, ... } // d = 10, 9, 8, 7, 6, 5, 4, 3, 2, 1

Reply


Messages In This Thread
How to make an basic Fuel system - by gamer931215 - 19.08.2010, 01:41
Re: How to make an basic Fuel system - by Carlton - 19.08.2010, 01:51
Re: How to make an basic Fuel system - by gamer931215 - 19.08.2010, 01:55
Re: How to make an basic Fuel system - by Lookin - 19.08.2010, 02:17
Re: How to make an basic Fuel system - by Brian_Furious - 19.08.2010, 11:50
Re: How to make an basic Fuel system - by DaneAMattie - 19.08.2010, 12:19
Re: How to make an basic Fuel system - by gamer931215 - 19.08.2010, 20:35
Re: How to make an basic Fuel system - by vital2k - 19.08.2010, 20:45
Re: How to make an basic Fuel system - by Scenario - 19.08.2010, 21:01
Re: How to make an basic Fuel system - by gamer931215 - 19.08.2010, 22:11
Re: How to make an basic Fuel system - by Lookin - 19.08.2010, 22:16
Re: How to make an basic Fuel system - by Scenario - 19.08.2010, 22:33
Re: How to make an basic Fuel system - by gamer931215 - 19.08.2010, 22:39
Re: How to make an basic Fuel system - by Hero_Of_War - 19.08.2010, 22:48
Re: How to make an basic Fuel system - by Nekrus2 - 19.08.2010, 22:55
Re: How to make an basic Fuel system - by Scenario - 19.08.2010, 22:56
Re: How to make an basic Fuel system - by gamer931215 - 19.08.2010, 23:00
Re: How to make an basic Fuel system - by Nekrus2 - 19.08.2010, 23:31
Re: How to make an basic Fuel system - by gamer931215 - 20.08.2010, 14:48
Re: How to make an basic Fuel system - by Lookin - 22.08.2010, 09:40
Re: How to make an basic Fuel system - by [RA]Bill - 22.08.2010, 16:19
Re: How to make an basic Fuel system - by Vince - 22.08.2010, 16:54
Re: How to make an basic Fuel system - by gamer931215 - 22.08.2010, 18:12
Re: How to make an basic Fuel system - by Vince - 22.08.2010, 21:16
Re: How to make an basic Fuel system - by Nekrus2 - 22.08.2010, 23:07
Re: How to make an basic Fuel system - by Jochemd - 24.08.2010, 16:33
Re: How to make an basic Fuel system - by juuleman - 19.10.2010, 15:36
Re: How to make an basic Fuel system - by Hurdehack - 16.08.2011, 13:03
Re: How to make an basic Fuel system - by Michael_Cuellar - 07.08.2012, 19:32
Re: How to make an basic Fuel system - by Coder_ - 07.08.2012, 20:32
Re: How to make an basic Fuel system - by WhiteAngels - 23.06.2014, 02:51
Re: How to make an basic Fuel system - by Le3aT - 26.06.2014, 05:33
Re: How to make an basic Fuel system - by victorcast - 26.06.2014, 22:30
Re: How to make an basic Fuel system - by AndreiWow - 05.10.2016, 13:08
Re: How to make an basic Fuel system - by Quinncell - 05.10.2016, 13:16

Forum Jump:


Users browsing this thread: 1 Guest(s)