Master BAW
2012-06-17 16:56:45
Hey,
I want to make an advanced script where I need to have multiple information of multiple items. If you put it in a PHP-array (I have scripted PHP for 3 years, but am new to Pascal) it would look like this:
[php]
<?php
$Items = array(array('name'=>'crayfish',
'price'=> 15,
'timeA'=> 32432522,
'timeB'=> 88203221,
'DMT' => 'jkeajwkfjlkewjkljklfheowif23fa8fdfahfkewjklfej'),
array('name'=>'Raw shark',
'price'=> 1500,
'timeA'=> 32442522,
'timeB'=> 88333221,
'DMT' => 'jkeajwkfjlkewjkljklfheowif23fa8fdfahfkewjklfej'),
array('name'=>'fire rune',
'price'=> 20,
'timeA'=> 31432522,
'timeB'=> 22203221,
'DMT' => 'jkeajwkfjlkewjkljklfheowif23fa8fdfahfkewjklfej'),
array('name'=>'gold ore',
'price'=> 105,
'timeA'=> 31432522,
'timeB'=> 82203221,
'DMT' => 'jkeajwkfjlkewjkljklfheowif23fa8fdfahfkewjklfej'));
?>
[/php]
But I need something like this in pascal. How the hell do I do this. I hope it's possible, because I need users to be able to add new items.
I have read a couple of tutorials on arrays, but can't find my awnser inthere.
I want to make an advanced script where I need to have multiple information of multiple items. If you put it in a PHP-array (I have scripted PHP for 3 years, but am new to Pascal) it would look like this:
[php]
<?php
$Items = array(array('name'=>'crayfish',
'price'=> 15,
'timeA'=> 32432522,
'timeB'=> 88203221,
'DMT' => 'jkeajwkfjlkewjkljklfheowif23fa8fdfahfkewjklfej'),
array('name'=>'Raw shark',
'price'=> 1500,
'timeA'=> 32442522,
'timeB'=> 88333221,
'DMT' => 'jkeajwkfjlkewjkljklfheowif23fa8fdfahfkewjklfej'),
array('name'=>'fire rune',
'price'=> 20,
'timeA'=> 31432522,
'timeB'=> 22203221,
'DMT' => 'jkeajwkfjlkewjkljklfheowif23fa8fdfahfkewjklfej'),
array('name'=>'gold ore',
'price'=> 105,
'timeA'=> 31432522,
'timeB'=> 82203221,
'DMT' => 'jkeajwkfjlkewjkljklfheowif23fa8fdfahfkewjklfej'));
?>
[/php]
But I need something like this in pascal. How the hell do I do this. I hope it's possible, because I need users to be able to add new items.
I have read a couple of tutorials on arrays, but can't find my awnser inthere.