13.01.2014, 18:10
Quote:
|
Код:
mysql_format(mysql, query, sizeof(query), "SELECT `posX`, `posY` FROM `joueurs` WHERE `posX` = '%f', `posY` = '%f'", pInfo[playerid][posX], pInfo[playerid][posY]);
mysql_tquery(mysql, query, "", "");
printf("%f %f %d %d", pInfo[playerid][posX], pInfo[playerid][posY]);
|
- your query doesn't really makes any sense
- that query will also likely never return any result, because you are comparing float values (very bad)
- even if this query would return some valid values, do you expect these values are auto-magically assigned to their correct variables? Only the ORM system can do this.
If you don't really care about understanding how to use it and how it works, you can alternatively take a look at the ORM system. Once set up, it should make your life easier.
