Quote (coldguy @ Fri, 22 May 2009, 18:08)
How do i use this data properly?
<wprof>1,1;2,1;3,2;9,0</wprof>
<cprof>2,0;5,1;6,0;7,1</cprof>
<sprof>0,0;1,0;2,0</sprof>
if the wprofs are stored in $data["wprofs"] then:
$temp = explode(";",$data["wprofs"]);
foreach ((array) $temp as $value) {
$temp2 = explode(",",$value);
$wprofs[(int)$temp2[0]] = (int)$temp2[1];
}
to use it for sword:$wprofs[0]
club: $wprofs[1]