05.10.2014, 21:44
You are using db_get_field_assoc wrong. You need to store the value it gives you in a string and then use floatstr or strval.
So if you want to load an integer:
For floats:
So if you want to load an integer:
Код:
new temp[32], myInt; db_get_field_assoc(Result, "myInt", temp, sizeof(temp)); myInt = strval(temp);
Код:
new temp[32], Float:myFloat; db_get_field_assoc(Result, "myFloat", temp, sizeof(temp)); myFloat = floatstr(temp);