Hi all,
Im having problem's with this:
str_cpy(MyQuery, "SELECT * FROM RF_NPC");
if(!mySQL_IsConnected())
{
// display: disconnected
printf("Database Down!");
}
else
if(mySQL_ExecQuery(MyQuery) && mySQL_RowNumber() > 0)
{
var Temp_NPC;
var Temp_NPC_PosX;
var Temp_NPC_PosY;
var Temp_NPC_PosZ;
var i;
wait(1);
mySQL_GetStr(Temp_NPC,1,0); ent_create(Temp_NPC,vector(0,0,0),NULL);
wait(1);
}
It gives an error with weird characters.
What im doing wrong ?
And yes DB is connected this is not all of my script but here its going wrong.
I allready can Login And create Account so it works only this part to create dynamicly entity's
there is atm only 1 entry in the DB (skelet.mdl)
that i read out and parse to 3dgs.
VarChar 50 with:
0 = ID
1 = Name
2 = Xpos
3 = Ypos
4 = Zpos
5 = Function