SA-MP Forums Archive
Scripting problem (easydb) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Scripting problem (easydb) (/showthread.php?tid=586401)



Please help ! Scripting problem (easydb) - brandypol - 21.08.2015

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]


Re: Scripting problem (easydb) - brandypol - 21.08.2015

Can someone help me please ??


Re: Scripting problem (easydb) - jamal1992 - 21.08.2015

What database type used ?


Re: Scripting problem (easydb) - jamal1992 - 21.08.2015

Look at the line 8, here is not any "DB", here is DB_Open, DB_VerifyTable, etc is not same thing !


Re: Scripting problem (easydb) - brandypol - 21.08.2015

Quote:
Originally Posted by jamal1992
Посмотреть сообщение
Look at the line 8, here is not any "DB", here is DB_Open, DB_VerifyTable, etc is not same thing !
there's isnt anythig in the 8th line, here it is :

PHP код:
//---------------------------------------------------------- 
That's the line 8

Please help me guys, there should be at least 1 person who knows how to fix that


Re: Scripting problem (easydb) - jamal1992 - 21.08.2015

Quote:

error 017: undefined symbol "DB"
error 029: invalid expression, assumed zero
error 017: undefined symbol "Open"

This says is 2 things undefined on that line, possible to have a mistake like that 'DB Open' and show it underfined. take a look carefully or search all 'Open' words from gamemode and check it.