I have a question concerning mySQL_GetVal(x, y)

Quote:

Return the value of the numeric field x at the line y of the resultset




err... how can i set the resultset?
At the moment, everytime i call that function, i get a crash in mySQL_GetVal ... which is logical as no resultset is set.


and just as a side note: your dll really kicks ass! good job!

[edit]

here's my code

Code:
function mySQL_read_position
{
mySQL_ExecQuery("USE test");
mySQL_ExecQuery("SELECT * FROM position");
temp = mySQL_GetVal(1,1);
if (temp > 0)
{
msg_show("mySQL data read!");
}
if (temp == 0)
{
msg_show("mySQL data does not exist!");
}
if (temp == -1)
{
msg_show("not a numeric field!");
}
}



this leads to "crash in mySQL_GetVal: waitt(secs*16)" .
so what needs to be changed?

[edit2]
well, as this is really important for me (mySQL is the heart of my game. Without it, the game is technically not possible) here's some candy for you: the person that helps me out gets this model-/texturepack:
http://projecthavoc.pr.funpic.de/gallery/sci-fi-pack/

you can do everything with the pack you want. change it, sell it, burn it ... it's up to you

Last edited by BoH_Havoc; 08/07/05 18:40.

Shade-C EVO Lite-C Shader Framework