06.07.2015, 16:41
Once again with the MySQL problem here, this'll be the last I hope..
Now that everything works and there's no query errors/mysql_log.txt errors the floats aren't loading!
Printing pPosX with both these codes;
just outputs this

All this is located under "OnAccountLoad"


That's under the pData enum
Table has correct types, everything saves but doesn't load!!
Now that everything works and there's no query errors/mysql_log.txt errors the floats aren't loading!
Код:
pData[playerid][pPosX] = cache_get_field_content_float(0, "pPosX"); pData[playerid][pPosY] = cache_get_field_content_float(0, "pPosY"); pData[playerid][pPosZ] = cache_get_field_content_float(0, "pPosZ"); pData[playerid][pPosA] = cache_get_field_content_float(0, "pPosA");
Код:
new Float:tempstr = cache_get_field_content_float(0, "pPosX"); printf("%f print1", tempstr); printf("%f print2", cache_get_field_content_float(0, "pPosX"));

Код:
[09:30:50] [DEBUG] cache_get_field_content_float - row: 0, field_name: "pPosX", connection: 1 [09:30:50] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "pPosX", data: "0" [09:30:50] [DEBUG] cache_get_field_content_float - row: 0, field_name: "pPosY", connection: 1 [09:30:50] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "pPosY", data: "0" [09:30:50] [DEBUG] cache_get_field_content_float - row: 0, field_name: "pPosZ", connection: 1 [09:30:50] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "pPosZ", data: "0" [09:30:50] [DEBUG] cache_get_field_content_float - row: 0, field_name: "pPosA", connection: 1 [09:30:50] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "pPosA", data: "0"


Код:
Float:pPosX, Float:pPosY, Float:pPosZ, Float:pPosA
Table has correct types, everything saves but doesn't load!!