Re: [問題] steal
看板mud_sanc (Sanctuary - 聖殿)作者laechan (小太保)時間15年前 (2010/07/25 21:27)推噓1(1推 0噓 0→)留言1則, 1人參與討論串2/2 (看更多)
※ 引述《ssskkk (卡車大叔)》之銘言:
Expected: string or array or object Got: 0.
程式: d/steal/steal.c:72
物件: /d/steal/steal
/std/user#5016 "heart_beat" std/user.c:908
/d/steal/steal "start_effect" d/steal/steal.c:72
:72
HIG"\n【"HIC"$N得到了 "+steal_objects[r]->query("short")+HIC" !"HIG" 】
\n\n"NOR;
steal_object or steal_object[r] 它判斷到為 0。
else if( steal_chance>random(200) && steal_objects=tar->query("steal_objects")
)
{
if(sizeof(steal_objects)>0)
{
r=random(sizeof(steal_objects));
保險起見已加了一行 steal_objects-=({0})
Belldandy.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.117.3.82
推
07/25 21:30, , 1F
07/25 21:30, 1F
討論串 (同標題文章)
mud_sanc 近期熱門文章
PTT遊戲區 即時熱門文章
51
111
47
79
6
15