26.05.2013, 22:28
Hello,
I bought a new host, which is linux instead of my regular windows. I use the same plugins and everything, but for some reason, I'm having some technical difficulties. Everything is loaded one after So for Example:
Posx = 5 Posy = 10 Posz = 1
That is the way it should load, but instead it's loading:
Posx: -0.00000028 Posy = 5 Poz = 10
As you can see, its just loading one over the the right. On windows, this works perfectly. But on linux it doesn't so I'm not sure what's wrong. Below I will post a couple of lines from the script which loads it, so you can see if you could find the issue. Thanks in advance to anyone reading.
Is the code to load it, and the enums are:
That is the database order for the beginning of it just to know it is loading in order, but just not being set in order
I bought a new host, which is linux instead of my regular windows. I use the same plugins and everything, but for some reason, I'm having some technical difficulties. Everything is loaded one after So for Example:
Posx = 5 Posy = 10 Posz = 1
That is the way it should load, but instead it's loading:
Posx: -0.00000028 Posy = 5 Poz = 10
As you can see, its just loading one over the the right. On windows, this works perfectly. But on linux it doesn't so I'm not sure what's wrong. Below I will post a couple of lines from the script which loads it, so you can see if you could find the issue. Thanks in advance to anyone reading.
pawn Код:
format(myquery, sizeof(myquery), "SELECT * FROM saes_stopsigns");
mysql_query(myquery);
mysql_store_result();
new srows = mysql_num_rows();
for(new i=0; i < srows; i++) {
mysql_fetch_row_format(myquery, "|");
sscanf(myquery, "p<|>e<iffff>", StopSign[i]);
printf("Stop Signs %i ::: %f %f %f", i, StopSign[i][sPosX], StopSign[i][sPosY], StopSign[i][sPosZ]);
}
Is the code to load it, and the enums are:
pawn Код:
enum sData {
sID,
Float:sPosX,
Float:sPosY,
Float:sPosZ,
Float:sPosA,
sObjectID
}
new StopSign[500][sData];
pawn Код:
id
posx
posy
posz
posa