Raised This Month: $51 Target: $400
 12% 

Database ORM (MySQL Data Wrapper) v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-28-2014 , 12:09   Re: Database ORM (MySQL Data Wrapper) v1.1
Reply With Quote #31

I am unable to compile it with the latest snapshot.
I can not compile it with any version, did you delete something by accident?

Welcome to the AMX Mod X 1.8.3-dev+17f2006 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Error: Undefined symbol "_Column" on line 1233
Error: Undefined symbol "_Column" on line 1337
Error: Undefined symbol "_Column" on line 1654
Error: Undefined symbol "_ColumnName" on line 1656
Error: Undefined symbol "_ColumnName" on line 1668
Error: Undefined symbol "_Column" on line 1697
Error: Undefined symbol "_ColumnName" on line 1699
Error: Undefined symbol "_ColumnName" on line 1711
Error: Undefined symbol "_ColumnName" on line 1788
Error: Undefined symbol "_MaxLen" on line 1792
Error: Undefined symbol "_MaxLen" on line 1794
Error: Undefined symbol "_ColumnName" on line 1799
Error: Undefined symbol "_ColumnName" on line 1818
Error: Undefined symbol "_ColumnName" on line 1910
Error: Undefined symbol "_MaxLen" on line 1914
Error: Undefined symbol "_MaxLen" on line 1916
Error: Undefined symbol "_ColumnName" on line 1920
Error: Undefined symbol "_ColumnName" on line 1931
Error: Undefined symbol "_Column" on line 2089
Error: Undefined symbol "_Column" on line 2211

20 Errors.
Could not locate output file D:\Pawn\Compiled Plugins\database_orm (1).amx (compile failed).
__________________

Last edited by Kia; 07-28-2014 at 12:11.
Kia is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-29-2014 , 06:24   Re: Database ORM (MySQL Data Wrapper) v1.1
Reply With Quote #32

Replace the .inc too
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-29-2014 , 06:40   Re: Database ORM (MySQL Data Wrapper) v1.1
Reply With Quote #33

Oops, thanks for hint.
__________________
Kia is offline
internel
Member
Join Date: Nov 2012
Old 07-29-2014 , 18:18   Re: Database ORM (MySQL Data Wrapper) v1.1
Reply With Quote #34

I've been searching for something like this for a long time ago! Thank you so much!! I need it for a plugin I'm developing

thank you again

Last edited by internel; 07-29-2014 at 19:15.
internel is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 10-20-2014 , 11:42   Re: Database ORM (MySQL Data Wrapper) v1.1
Reply With Quote #35

When I try to add the first array to my plugin it gives me segifault, is it because I have too many tables being made?
Code:
// THIS ONE CAUSES CRASH new g_DatabaseColumns_Generic[DatabaseColumns_Generic][ClassColumnStruct] = {     { "greenchat", Column_Int, 1 },     { "slot", Column_Int, 1 },     { "health", Column_Int, 6 },     { "otherweap", Column_Int, 1 },     { "multijump", Column_Int, 1 },     { "antiflash", Column_Int, 1 },     { "speed", Column_Varchar, 8 },     { "ap", Column_Int, 6 } } // THIS ONE CAUSES CRASH new g_DatabaseColumns_Models[DatabaseColumns_Models][ClassColumnStruct] = {     { "name", Column_Varchar, 32 },     { "team", Column_Varchar, 4 } } new g_DatabaseColumns_ModelsSelected[DatabaseColumns_ModelsSelected][ClassColumnStruct] = {     { "ct", Column_Varchar, 32 },     { "tr", Column_Varchar, 32 } } new g_DatabaseColumns_Weapons[DatabaseColumns_Weapons][ClassColumnStruct] = {     { "name", Column_Varchar, 32 },     { "oldmdl", Column_Varchar, 64 },     { "newmdl", Column_Varchar, 64 } } new g_DatabaseColumns_WeaponsSelected[DatabaseColumns_WeaponsSelected][ClassColumnStruct] = {     { "name", Column_Varchar, 32 },     { "oldmdl", Column_Varchar, 64 },     { "newmdl", Column_Varchar, 64 } } new g_DatabaseColumns_Hats[DatabaseColumns_Hats][ClassColumnStruct] = {     { "name", Column_Varchar, 32 },     { "path", Column_Varchar, 64 } } new g_DatabaseColumns_HatsSelected[DatabaseColumns_HatsSelected][ClassColumnStruct] = {     { "name", Column_Varchar, 32 },     { "path", Column_Varchar, 64 } }
__________________
Kia is offline
XLN's | [Lo]Phreak^n^c
Senior Member
Join Date: May 2006
Location: Argentina
Old 10-20-2014 , 14:06   Re: Database ORM (MySQL Data Wrapper) v1.1
Reply With Quote #36

so.. the one with Int types.. not tested but check this

Code:
// Usage: new Array:Columns = ArrayCreate(ClassColumnStruct, Number_Of_Columns)
enum _: ClassColumnStruct
{
    _ColumnName[16],            // name of the column
    ClassColumnType: _Column,    // either Column_Varchar or Column_Int
    _MaxLen                        // maxlen of the field. Use 11 for ints.
};
__________________
::: If u're 555 then I'm 666 :::
XLN's | [Lo]Phreak^n^c is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 10-20-2014 , 14:14   Re: Database ORM (MySQL Data Wrapper) v1.1
Reply With Quote #37

Changed all to 11 and also tried to make them all to varchar, still segifault.
__________________
Kia is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode