Game_id=30 範例[]
注意事項 evt1_id =103 , evt2_id =1 ,ev3L_id = 1 的 ary16位置的 12345678 要改成你的user_id , 這樣你才能進入這admin 主選單中 ,這個給玩家的範例是誰都可以進入admin主選單中, (不改12345678成為你的user_id 會顯示This vote has not been set to start voting.= 還沒有設定開始投票. , your user_id=@a(8))
self array dbase = ?; 沒有用到server self array
~~~~~~ kkc key n1~~~~~~
n1 user_id
~~~~~~ 個人array 位置和說明 ~~~~~~
6. 取現在日期 格式是2019123124 進ayr[6] 位置
7. 輸入99數字則清除所有資料
8. user_id 暫取來放這裡
9. =1 已選擇 =0 未選擇 =-1 未設定 , 這數值是記錄防止再投一次票
11. 選1的總合
12. 選2的總合
13. 選3的總合
14. 選4的總合
15. 選5的總合
16. 設定投票的結束時間 格式是9123124 (限24小時)
20. 設定要停止投票的時間
21. 設定要停止投票的時間 天數 1 or 2天
301 kkc 資料庫
311 aryday 資料庫
~~~~~~ 公共aryday 位置和說明 ~~~~~~
1. 投ans1 的累積處 aryday[1]
2. 投ans2 的累積處 aryday[2]
3. 投ans3 的累積處 aryday[3]
4. 投ans4 的累積處 aryday[4]
5. 投ans5 的累積處 aryday[5]
6. 投票的最後1日 格式是9123124 (限24小時)
~~~~~~ evt 事件說明 ~~~~~
1: 遊戲最開始的初始化 [evt1_ms=0]
evt1_id =1 ,[evt2_ms=1]:evt2_id= 1 : (初始化, 先設定evt1_id =1 是一開始就有執行, 和先load server array[9]位置資料進來 , 和取讀 fb_key 進ary[8]
evt1_id =1 ,[evt2_ms=1] evt2_id= 2 : evt2_id =1 ,ev3L_id = 1 的 ary16位置的 12345678 要改成你的fb_key , 這樣你才能進入這admin 主選單中
evt1_id =1 ,[evt2_ms=0]:evt2_id=11 : 知道投票結果
evt1_id =1 ,[evt2_ms=0]:evt2_id=12 : 當輸入數字等於99 ,就跳去evt2_id =20
evt1_id =1 ,[evt2_ms=0]:evt2_id=13 : 設定投定要停止投票的時間 , 存在ary[20] , 輸入1 then ary[21] =1 , 輸入1 then ary[21] =2
evt1_id =1 ,[evt2_ms=0]:evt2_id=20 : 當array[7] == 99 , 時就刪除共通的aryday ,和全部玩家的ary 的server資料
evt1_id =1 ,[evt2_ms=0]:evt2_id=21 : (ary[21] =1 then array[6] 一天後投票到期時間) , (ary[21] =1 then array[6] 2天後投票到期時間 )
evt1_id =1 ,[evt2_ms=0]:evt2_id=22 : 檢查 if (ary[16] == 0) 還沒有開始投票了 ,if ary[16] > 0 開始投票有投票的期限時間 ,再跳到evt2_id=23
evt1_id =1 ,[evt2_ms=0]:evt2_id=23 : 檢查ary[16] >= ary[6] 意思 還沒有到停止投票日期, 否則就是投票時間內已經過了
101: 玩家投票 [evt1_ms=0]
evt1_id =101 ,[evt2_ms=1] :evt2_id= 1 : (if array[9] == 0 then (意思是你未投過票, 就可以投票) else (==1代表可以取讀到你投過票的取讀 fb_key, show You have already voted = 你已經投完票了, your user_id=@a(8) )
evt1_id =101 ,[evt2_ms=0]:evt2_id= 11: if ary[16] > ary[6] then 假如投選結束時間大於等於現在時間, 答案1 的處理 ary[9]=1 , noday aryday[1]= aryday[1] +1; kkc 將ary[8]=user_id 的資料存入n1,防玩家再投票一次
evt1_id =101 ,[evt2_ms=0]:evt2_id= 12: if ary[16] > ary[6] then 假如投選結束時間大於等於現在時間, 答案1 的處理 ary[9]=2 , noday aryday[2]= aryday[2] +1; kkc 將ary[8]=user_id 的資料存入n1,防玩家再投票一次
evt1_id =101 ,[evt2_ms=0]:evt2_id= 13: if ary[16] > ary[6] then 假如投選結束時間大於等於現在時間, 答案1 的處理 ary[9]=3 , noday aryday[3]= aryday[3] +1; kkc 將ary[8]=user_id 的資料存入n1,防玩家再投票一次
evt1_id =101 ,[evt2_ms=0]:evt2_id= 14: if ary[16] > ary[6] then 假如投選結束時間大於等於現在時間, 答案1 的處理 ary[9]=4 , noday aryday[4]= aryday[4] +1; kkc 將ary[8]=user_id 的資料存入n1,防玩家再投票一次
evt1_id =101 ,[evt2_ms=0]:evt2_id= 15: if ary[16] > ary[6] then 假如投選結束時間大於等於現在時間, 答案1 的處理 ary[9]=5 , noday aryday[5]= aryday[5] +1; kkc 將ary[8]=user_id 的資料存入n1,防玩家再投票一次
evt1_id =101 ,[evt2_ms=0]:evt2_id= 20: if ary[16] == 0 then (Not set to start voting = 未設定開始投票) else (More than voting time = 超過投票時間)
102: 顯示投票結果 [evt1_ms=0]
evt1_id =102 ,[evt2_ms=1]: 投完票, 知道投票結果 noday read aryday[1~6] 存入 ary[11]開始位置
300:[evt1_ms=0]
evt1_id =300 ,[evt2_ms=0]evt2_id= 1 : execl <1> kkc 資料庫 kkc dbase um
evt1_id =300 ,[evt2_ms=0]evt2_id= 1 : execl <11> aryday 資料庫 kkc dbase um
~~~~~~ evt.txt ~~~~~
$k1_array = array(
array(1,1,0,0,0,0,0,0,0,0,1,9,0),
array(101,1,0,0,0,0,0,0,0,0,10,7,0),
array(102,1,0,0,0,0,0,0,0,0,17,1,0)
);//ab
$k2_array = array(
array(16109,0,1,0,0,1,5,0,0,0,0),
array(16109,0,2,6,1,7,1,8,1,0,0),
array(16109,222,11,0,0,9,2,0,0,0,0),
array(16109,222,12,0,0,11,1,0,0,0,0),
array(16109,222,13,0,0,12,1,0,0,0,0),
array(16109,222,20,13,1,14,4,18,1,0,0),
array(16109,222,21,0,0,19,5,0,0,0,0),
array(16109,222,22,24,1,25,1,26,1,0,0),
array(16109,222,23,27,1,28,1,29,1,0,0),
array(16110,0,1,30,1,31,1,32,1,0,0),
array(16110,222,11,33,1,34,4,38,1,0,0),
array(16110,222,12,39,1,40,4,44,1,0,0),
array(16110,222,13,45,1,46,4,50,1,0,0),
array(16110,222,14,51,1,52,4,56,1,0,0),
array(16110,222,15,57,1,58,4,62,1,0,0),
array(16110,222,20,63,1,64,1,65,1,0,0),
array(16116,0,1,0,0,66,2,0,0,0,0)
);//ab
$k4_array = array(
array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(4,20,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(10,5,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(23,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(54,1,11,1,1,1,9,0,8,0,0,0,0,0,0,0,0,0,0,0,0),
array(53,0,0,0,0,0,1,0,6,0,11,0,0,0,0,0,0,0,0,0,0),
array(16,1,0,0,0,0,8,0,0,0,0,1,0,0,0,0,1,0,0,0,0),
array(6,2,0,0,0,0,11,12,13,22,0,0,0,0,0,0,0,0,0,0,0),
array(3,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(53,0,0,0,0,0,1,0,6,0,11,0,0,0,0,0,0,0,0,0,0),
array(5,17,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(5,5,20,0,0,0,1,1,0,200,7,0,0,0,0,0,0,0,0,0,0),
array(5,12,21,0,0,0,1,1,2,24,21,0,0,0,0,0,0,0,0,0,0),
array(8,1,0,0,0,0,7,0,0,0,0,3,0,0,0,0,99,0,0,0,0),
array(54,1,23,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1),
array(5,3,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(5,3,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(5,6,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(10,5,20,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0),
array(52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1),
array(52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,20,0),
array(54,1,1,1,1,1,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(5,13,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(8,1,0,0,0,0,16,0,0,0,0,3,0,0,0,0,0,0,0,0,0),
array(5,14,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(3,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(9,1,0,0,0,0,16,0,0,0,0,2,0,0,0,0,6,0,0,0,0),
array(12,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(5,15,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(8,1,0,0,0,0,9,0,0,0,0,3,0,0,0,0,0,0,0,0,0),
array(6,1,0,16,0,0,11,12,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(5,7,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(9,1,0,0,0,0,16,0,0,0,0,2,0,0,0,0,6,0,0,0,0),
array(7,9,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(52,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0),
array(54,1,2,1,1,1,0,0,8,0,0,8,0,0,0,0,0,0,0,0,0),
array(12,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(3,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(9,1,0,0,0,0,16,0,0,0,0,2,0,0,0,0,6,0,0,0,0),
array(7,9,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(52,0,0,0,0,0,2,2,1,1,0,0,0,0,0,0,0,0,0,0,0),
array(54,1,2,1,1,1,0,0,8,0,0,8,0,0,0,0,0,0,0,0,0),
array(12,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(3,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(9,1,0,0,0,0,16,0,0,0,0,2,0,0,0,0,6,0,0,0,0),
array(7,9,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(52,0,0,0,0,0,3,3,1,1,0,0,0,0,0,0,0,0,0,0,0),
array(54,1,2,1,1,1,0,0,8,0,0,8,0,0,0,0,0,0,0,0,0),
array(12,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(3,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(9,1,0,0,0,0,16,0,0,0,0,2,0,0,0,0,6,0,0,0,0),
array(7,9,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(52,0,0,0,0,0,4,4,1,1,0,0,0,0,0,0,0,0,0,0,0),
array(54,1,2,1,1,1,0,0,8,0,0,8,0,0,0,0,0,0,0,0,0),
array(12,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(3,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(9,1,0,0,0,0,16,0,0,0,0,2,0,0,0,0,6,0,0,0,0),
array(7,9,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(52,0,0,0,0,0,5,5,1,1,0,0,0,0,0,0,0,0,0,0,0),
array(54,1,2,1,1,1,0,0,8,0,0,8,0,0,0,0,0,0,0,0,0),
array(12,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(3,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(8,1,0,0,0,0,16,0,0,0,0,3,0,0,0,0,0,0,0,0,0),
array(5,11,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(5,10,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(53,0,0,0,0,0,1,0,6,0,11,0,0,0,0,0,0,0,0,0,0),
array(5,17,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
);//ab
$k5_array = array(
array(1,1,2),
array(2,3,2)
);//ab
$string_array = array(
array(1,'12345678'),
array(2,'0'),
array(3,'clear all dat 清除掉資料和停止投票'),
array(4,'exit 離開了, 可以關視窗.'),
array(5,'input 99 to clear all data , 如果你輸入數字 99 即可清除掉所有資料 和停止投票動作'),
array(6,'you input no 99 , you input is @a(7) , not clear dat
, 你輸入的不是99 , 你輸入的號碼是 @a(7) , 所以清除資料沒有成功'),
array(7,'You have already voted = 你已經投完票了, your user_id=@a(8) '),
array(9,'ans A= @a(11)
ans B= @a(12)
ans C= @a(13)
ans D= @a(14)
ans E= @a(15)
'),
array(10,'More than voting time = 超過投票時間'),
array(11,'Not set to start voting = 未設定開始投票'),
array(12,'input voted time 2 to 24 hour = ˊ輸入要投票的時間,2~24小時 '),
array(13,'set @a(21) hour can voting start = 設定 @a(21) 小時時間可以投票了 ,
now time = 20@a(6) 現在時間 ,
end time = 20@a(20) 結束時間'),
array(14,'This vote has not been set to start voting.= 還沒有設定開始投票. , your user_id=@a(8)'),
array(15,'The voting time has passed. = 投票時間內已經過了
your user_id=@a(8)
ans A=@a(11)
ans B=@a(12)
ans C=@a(13)
ans D=@a(14)
ans E=@a(15)
'),
array(16,'https://cdn.pixabay.com/photo/2018/07/29/11/59/vote-3569999_960_720.jpg'),
array(17,'')
);//ab
$talk_array = array(
array(1,0,'What is the choice?'),
array(1,1,'ans A@$ans B'),
array(2,2,'your user_id = @a(8)
now time YYmmddhh = @a(6)
end stop vote time YYmmddhh = @a(16)
my self array@c(1,100)'),
array(2,1,'view result vote 查看投票結果@$ clear all dat and stop vote 清掉所有投票資料和不能投票了@$ Reset and start voting 重置和開始投票 @$ Manager self-test voting 管理者自已測試投票'),
array(3,0,'you can use system user'),
array(3,1,'view array @$ set array@$3@$4@$ back ')
);//ab