Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (EternallyCurious, howardR), 646 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 4
Page 10 of 24 1 2 8 9 10 11 12 23 24
Re: MySQL dll [Re: BoH_Havoc] #41707
08/19/05 20:35
08/19/05 20:35
Joined: Aug 2002
Posts: 44
Panama City, FL
S
Specterdragon Offline
Newbie
Specterdragon  Offline
Newbie
S

Joined: Aug 2002
Posts: 44
Panama City, FL
Quote:

To connect to an "off-site db" (as you name it) change "localhost" to "my-rootserver.ath.cx"




OK, so I'm not a wizard at these things... lack of a beter name LOL

That's awsome news, though. For my app, it could mean alot less work trying to get a website and clients to match info... this is looking better and beter ... if only we could retrieve data by name rather then by column number hehe... but can't have everything right? I'm just glad it works


Just thinking out loud, Specterdragon
Re: MySQL dll [Re: Specterdragon] #41708
10/09/05 14:34
10/09/05 14:34
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
Should this plugin work with MySQL v5.0?

Re: MySQL dll [Re: Excessus] #41709
10/13/05 00:46
10/13/05 00:46
Joined: Oct 2005
Posts: 11
R
Remo_L Offline
Newbie
Remo_L  Offline
Newbie
R

Joined: Oct 2005
Posts: 11
Im having a little trouble getting these plugin to work .

I have the dll files (both) in both folders (a plug ins and my project folder). First I tried it without loading anything but declaring the functions and it didnt work. Then I tried loading the DLL manually in the bottom of Main and it says that this is not a valid acknex dll plug-in. Anyone knows why am I getting that error?

Re: MySQL dll [Re: Remo_L] #41710
10/17/05 06:48
10/17/05 06:48
Joined: Aug 2005
Posts: 343
Germany
HPW Offline
Senior Member
HPW  Offline
Senior Member

Joined: Aug 2005
Posts: 343
Germany
Don't forget to open the incomming ports for MySql(Port number: 3306) to connect to a database on a Server OS!


Evil Blood (v. 0.52) RPG
Commport.de (Social Network Community)
Re: MySQL dll [Re: KyiasShadow] #41711
11/26/05 04:10
11/26/05 04:10
Joined: Sep 2005
Posts: 514
USA
Gho5tFac3K1llah Offline
Developer
Gho5tFac3K1llah  Offline
Developer

Joined: Sep 2005
Posts: 514
USA
Quote:


//LOGIN STERINGS
string Login_Query; // holds the mysql query
string username[16]; // holds the username
string password; // holds the password
string libmysqldll = <libmysql.dll>;
var_nsave mysql_handle;




I understand this.
Quote:


Then
Code:

////////////////////
//DATABASE FUNCTIONS
dllfunction mySQL_Connectdb(w,x,y,z);
dllfunction mySQL_Closedb();
dllfunction mySQL_ExecQuery(string);
dllfunction mySQL_GetVal(x,y);
dllfunction mySQL_GetStr(string,x,y);
dllfunction mySQL_RowNumber();
dllfunction mySQL_IsConnected();



After this i have all of my panels/texts that are in the login script. have you added functions to these to handle the login scripts wich mine will be below.

Code:

////////////////////
//TEXT'S
text txtName
{
pos_x = 575;
pos_y = 115;
layer = 30;
font fnt_century12;
string username;
}
text txtPassword
{
pos_x = 575;
pos_y = 115;
layer = 30;
font fnt_century12;
string password;






I understand all that also. What I do not understand is this:
Quote:


Now for what is in my function Main.
Code:

//Main Function
function main()
{

mouse_on();
level_load(MPLevel); //Load the first level
sleep(.2);
While (!bat_set)
{
wait(1);
}
mysql_handle = dll_open(libmysqldll);
mySQL_Connectdb("databse","host","user","password");
}






What is the mySQL_Connectdb("databse","host","user","password"); mean? Do I leave it as it is or do I fill in that info.
Quote:


Ok now i have a buttony ou push then a login apears. within this is the login script that i use for the 2 Textxs that were showsn earlier.
Code:

mySQL_Connectdb("databse","host","user","password");
if(!mySQL_IsConnected()&&!mySQL_Connectdb("databse","host","user","password"))
{
beep;
exit;
}
txtName.visible = on;
inkey(username);
txtName.visible = off;
txtPassword.visible = on;
inkey(password);
txtPassword.visible = off;

str_cat(Login_Query, "select * from Accounts WHERE Account_Name='");
str_cat(Login_Query, username);
str_cat(Login_Query, "' AND Password='");
str_cat(Login_Query, password);
str_cat(Login_Query, "';");
mySQL_ExecQuery(Login_Query);
if(mySQL_ExecQuery(Login_Query)&&mySQL_RowNumber()==1)
{
Join_Game();
}
else
{
beep;
exit;//if no entry, exit

}






All I ask from you, KyiasShadow, is that you go into more detail for people, like me, who do not fully understand this. Cheers.

Domingo

Re: MySQL dll [Re: Gho5tFac3K1llah] #41712
11/26/05 11:16
11/26/05 11:16
Joined: Jan 2005
Posts: 1,918
BagEnd, Hobbiton, The Shire, E...
B
Bilbo Offline
Senior Developer
Bilbo  Offline
Senior Developer
B

Joined: Jan 2005
Posts: 1,918
BagEnd, Hobbiton, The Shire, E...
What is the mySQL_Connectdb("databse","host","user","password"); mean? Do I leave it as it is or do I fill in that info.

-i can answer this question, you have to fill in your details host is usually localhost


http://Lonewolfstudios.syxe.com - now in php! Bah, I'm nerd enough to enjoy the rattling ~ laethyn
Re: MySQL dll [Re: Bilbo] #41713
11/26/05 16:07
11/26/05 16:07
Joined: Sep 2005
Posts: 514
USA
Gho5tFac3K1llah Offline
Developer
Gho5tFac3K1llah  Offline
Developer

Joined: Sep 2005
Posts: 514
USA
Can someone just write up a simple tutorial for people that still can't follow on this topic?

Re: MySQL dll [Re: Gho5tFac3K1llah] #41714
01/17/06 03:52
01/17/06 03:52
Joined: Jun 2001
Posts: 385
Eastern Washington State
Z
Zio Offline
Senior Member
Zio  Offline
Senior Member
Z

Joined: Jun 2001
Posts: 385
Eastern Washington State
This has to be the strangest bug I've run across. I've been using the mySQL dll and it's been working beautifully. However I can't figure out why this is happening, it makes no sense.

I'm trying to fill up a text object with a list of the currently online users.

You would think this this code would work:
Code:
while(line < users)
{
mySQL_GetStr(txtOnlineUsers.string[line],0,line);
line += 1;
}



However that prints out the same username on every line of text. Sort of. It's hard to describe, but it basically does this: The first line prints the correct name. The second line prints the correct name, but also overwrites the first line with the second name. Etc etc. The end result is that every line contains the last name pulled.

But that isn't the strange part. Trying to debug the code, I tested out this snippet instead of the loop:

Code:
mySQL_GetStr(txtOnlineUsers.string[line],0,line);
line += 1;
mySQL_GetStr(txtOnlineUsers.string[line],0,line);
line += 1;
mySQL_GetStr(txtOnlineUsers.string[line],0,line);
line += 1;
mySQL_GetStr(txtOnlineUsers.string[line],0,line);
line += 1;
//etc etc



THAT works PERFECT. How is that any different than what the loop is doing?! I seriously can't figure it out.



EDIT:
Hmm, did a bunch more tests and the problem is completely unrelated to pulling the string with mySQL_getStr(), so this doesn't really belong in the thread.

That's what I get for being impatient and posting before exhausting all possible tests.

Last edited by Zio; 01/17/06 04:31.
Re: MySQL dll [Re: Destop] #41715
02/10/06 18:21
02/10/06 18:21
Joined: Nov 2003
Posts: 1,659
San Francisco
JetpackMonkey Offline
Serious User
JetpackMonkey  Offline
Serious User

Joined: Nov 2003
Posts: 1,659
San Francisco
That's really nice of you, desktop! Thanks !



Re: MySQL dll [Re: JetpackMonkey] #41716
02/23/06 16:53
02/23/06 16:53
Joined: Feb 2006
Posts: 3
N
noxy Offline
Guest
noxy  Offline
Guest
N

Joined: Feb 2006
Posts: 3
Hi,
i tried everything but i allways become the Errormessage: Not vault Acknex DLL.
Yes i put it in the Pluginfolder and in the Gamefolder.
And the libmysql.dll i copied too...
Please Help o.O

Regards
Raphy

Page 10 of 24 1 2 8 9 10 11 12 23 24

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1