二楼那样是多余的哦,运算符后面的空白符自动忽略~ |
本帖最后由 tommay 于 2009-7-10 21:58 编辑 rand(n)是在0~n-1中随机 ----------------------------------------------------------- $game_variables[12] = [[1,2,3,4,5,6][rand(6)]] 这句话多了一个括号,正确的应该是 $game_variables[12] = [1,2,3,4,5,6][rand(6)] 但是括号去掉后依旧很奇怪,于是就没采用这种写法。 |
$game_variables[12] = [[1,2,3,4,5,6][rand(6)]] 这一句改为 $game_variables[12] = rand(6)+1 试试 |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2025-7-19 14:57
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.