Commit 936d73d4 authored by nahakyuu's avatar nahakyuu

fix bug and change sql to TYPE=MyISAM ENGINE=MyISAM

parent 62a76ef8
......@@ -13,7 +13,7 @@ CREATE TABLE bra_chat (
msg char(60) NOT NULL default '',
PRIMARY KEY (cid)
) TYPE=MyISAM;
) ENGINE=MyISAM;
......@@ -103,7 +103,7 @@ CREATE TABLE bra_players (
PRIMARY KEY (pid),
INDEX TYPE (type, sNo),
INDEX NAME (name, type)
) TYPE=MyISAM;
) ENGINE=MyISAM;
......@@ -22,7 +22,7 @@ CREATE TABLE bra_users (
PRIMARY KEY (uid),
UNIQUE KEY username (username)
) TYPE=MyISAM;
) ENGINE=MyISAM;
--
-- 插入初始数据 `bra_users`
......@@ -142,7 +142,7 @@ CREATE TABLE bra_winners (
hkp char(15) NOT NULL default '',
UNIQUE KEY (gid)
) TYPE=MyISAM;
) ENGINE=MyISAM;
--
......@@ -250,7 +250,7 @@ CREATE TABLE bra_players (
PRIMARY KEY (pid),
INDEX TYPE (type, sNo),
INDEX NAME (name, type)
) TYPE=MyISAM;
) ENGINE=MyISAM;
......@@ -269,7 +269,7 @@ CREATE TABLE bra_chat (
msg char(60) NOT NULL default '',
PRIMARY KEY (cid)
) TYPE=MyISAM;
) ENGINE=MyISAM;
......@@ -27,7 +27,7 @@ function getclub($who, &$c1, &$c2, &$c3)
$result = $db->query("SELECT uid FROM {$tablepre}users WHERE username='$who'");
$t=$db->fetch_array($result); $curuid=$t['uid']+2;
$result = $db->query("SELECT pid FROM {$tablepre}players WHERE name='$who' AND type=0");
$t=$db->fetch_array($result); $curpid=$result['pid']+3;
$t=$db->fetch_array($result); $curpid=$t['pid']+3;
$c1=calc(12347,10007,$curgid,$curuid,$curpid,$starttime,$validtime);
$c1%=6; if ($c1==0) $c1=9; //超能称号为9号
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment