smithster
05-03-2007, 02:04 PM
Ok, so I have a php file with a list of map names. It is a for a call of duty website. I want to match the right map picture with the map name. But I am not sure how to do that. I have tried alsorts of things but could not get it to work. If someone has any idea, please let me know. Assume the pictures are in the same folder as the file with the map names.
Here is the list as written in the file.
$list_of_maps[] = 'mp_farmhouse Beltot, France';
$list_of_maps[] = 'mp_brecourt Brecourt, France';
$list_of_maps[] = 'mp_burgundy Burgundy, France';
$list_of_maps[] = 'mp_trainstation Caen, France';
$list_of_maps[] = 'mp_carentan Carentan, France';
$list_of_maps[] = 'mp_decoy El Alamein, Egypt';
$list_of_maps[] = 'mp_leningrad Leningrad, Russia';
$list_of_maps[] = 'mp_matmata Matmata, Tunisia';
$list_of_maps[] = 'mp_downtown Moscow, Russia';
$list_of_maps[] = 'mp_harbor Rostov, Russia'; //1.3
$list_of_maps[] = 'mp_dawnville St. Mere Eglise, France';
$list_of_maps[] = 'mp_railyard Stalingrad, Russia';
$list_of_maps[] = 'mp_toujane Toujane, Tunisia';
$list_of_maps[] = 'mp_breakout Villers-Bocage, France';
$list_of_maps[] = 'mp_rhine Wallendar, Germany'; //1.3
$list_of_maps[] = 'mp_gob_rats';
$list_of_maps[] = 'mp_industry';
$list_of_maps[] = 'islands';
Any further info required, please ask.
Thanks
Smithster
Here is the list as written in the file.
$list_of_maps[] = 'mp_farmhouse Beltot, France';
$list_of_maps[] = 'mp_brecourt Brecourt, France';
$list_of_maps[] = 'mp_burgundy Burgundy, France';
$list_of_maps[] = 'mp_trainstation Caen, France';
$list_of_maps[] = 'mp_carentan Carentan, France';
$list_of_maps[] = 'mp_decoy El Alamein, Egypt';
$list_of_maps[] = 'mp_leningrad Leningrad, Russia';
$list_of_maps[] = 'mp_matmata Matmata, Tunisia';
$list_of_maps[] = 'mp_downtown Moscow, Russia';
$list_of_maps[] = 'mp_harbor Rostov, Russia'; //1.3
$list_of_maps[] = 'mp_dawnville St. Mere Eglise, France';
$list_of_maps[] = 'mp_railyard Stalingrad, Russia';
$list_of_maps[] = 'mp_toujane Toujane, Tunisia';
$list_of_maps[] = 'mp_breakout Villers-Bocage, France';
$list_of_maps[] = 'mp_rhine Wallendar, Germany'; //1.3
$list_of_maps[] = 'mp_gob_rats';
$list_of_maps[] = 'mp_industry';
$list_of_maps[] = 'islands';
Any further info required, please ask.
Thanks
Smithster