21.08.2015, 22:00
(
Последний раз редактировалось brandypol; 21.08.2015 в 22:18.
Причина: Nobody answers
)
I added a group system into my gamemode script and after compiling I got those errors :
error 017: undefined symbol "DB"
error 029: invalid expression, assumed zero
error 017: undefined symbol "Open"
The compiler says that they're all on the same line, the 8th one but they actually are NOT on the 8th line. Here's where they are :
CODE] DB_Open("Group.db");
Group_Table = DB_VerifyTable("Groups","id");
GroupMember_Table = DB_VerifyTable("GroupMembers","id");
DB_VerifyColumn(Group_Table,"GroupName", DB_TYPE_STRING,"");
DB_VerifyColumn(Group_Table,"GroupMotd", DB_TYPE_STRING,"");
////////////////////////////////////////////////////////////
DB_VerifyColumn(GroupMember_Table,"UserName", DB_TYPE_STRING,"");
DB_VerifyColumn(GroupMember_Table,"GroupName", DB_TYPE_STRING,"");
DB_VerifyColumn(GroupMember_Table,"GroupLeader",DB _TYPE_NUMBER,0);[/CODE]
error 017: undefined symbol "DB"
error 029: invalid expression, assumed zero
error 017: undefined symbol "Open"
The compiler says that they're all on the same line, the 8th one but they actually are NOT on the 8th line. Here's where they are :
CODE] DB_Open("Group.db");
Group_Table = DB_VerifyTable("Groups","id");
GroupMember_Table = DB_VerifyTable("GroupMembers","id");
DB_VerifyColumn(Group_Table,"GroupName", DB_TYPE_STRING,"");
DB_VerifyColumn(Group_Table,"GroupMotd", DB_TYPE_STRING,"");
////////////////////////////////////////////////////////////
DB_VerifyColumn(GroupMember_Table,"UserName", DB_TYPE_STRING,"");
DB_VerifyColumn(GroupMember_Table,"GroupName", DB_TYPE_STRING,"");
DB_VerifyColumn(GroupMember_Table,"GroupLeader",DB _TYPE_NUMBER,0);[/CODE]