Page 1 of 1 1
Topic Options
#163121 - 2006-06-09 01:43 PM arrays problem
kelp7 Offline
Starting to like KiXtart

Registered: 2002-08-12
Posts: 124
Loc: UK
Hi,

I'm having some trouble with the following portion of code:

Code:
$oroom[$fitem[$benflag]] = 0  



instead of assigning the value zero to the element of $oroom contained within $fitem[$benflag], instead Kix just prints out the current values of these variables on the screen.... where am i going wrong? any help very much appreciated...

thanks
ben

Top
#163122 - 2006-06-09 02:02 PM Re: arrays problem
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
You've run into the Issue reported in this thread.

as a workaround:

Code:

$item = $fitem[$benflag]
$oroom[$item]= 0

_________________________



Top
#163123 - 2006-06-09 03:35 PM Re: arrays problem
kelp7 Offline
Starting to like KiXtart

Registered: 2002-08-12
Posts: 124
Loc: UK
thanks for the answer...
ben

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.148 seconds in which 0.086 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org