More fancy maths issues

Forum Archive - from http://theuniversal.net
Locked
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

More fancy maths issues

Post by morbydvisns »

Software:Universal Client
Version Number:
________________________________________________________________________
Location

________________________________________________________________________
Description:
Function GetMapData( $row, $col )
{
$pos1 =$row - 1
$pos2 = $pos1 * $mapWidth
$playrerPos = ($row - 1) * $mapWidth <---------this does not work
// $playerPos = $pos2 + $col
return( $m_MapData[$playerPos] )

}
________________________________________________________________________
Steps to Replicate:
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

same as previous.. compound maths operations are not supported atm. ( http://theuniversal.net/worldmanual/dok ... sic_syntax )
Locked