Mysql load help
#1

Hi. I have mysql clan load:
Код:
	cache_get_field_content(i, "cOwner", cdb [i][cOwner], MysqlConnection, MAX_PLAYER_NAME);
		cdb [i][cPos][0] = cache_get_field_content_float (i, "cX");
		cdb [i][cPos][1] = cache_get_field_content_float (i, "cY");
		cdb [i][cPos][2] = cache_get_field_content_float (i, "cZ");
And now i try to load color code from mysql table ( 0xFFFFFFAA ). How to load that code? I tryed like this, but it not working..
Код:
cache_get_field_content(i, "ccolor", cdb [i][ccolor], MysqlConnection, 100);
Reply
#2

but in the database is the color saved?
Reply
#3

Yes. Saved. ccolor - 0xFFFFFFAA
Reply
#4

Give a try saving/loading the color as an integer, using %d and cache_get_field_content_int.
Reply
#5

Quote:
Originally Posted by RIDE2DAY
Посмотреть сообщение
Give a try saving/loading the color as an integer, using %d and cache_get_field_content_int.
Same :/
Reply
#6

In mysql table ccolor saved as code - 0xFFFFFFAA
Reply
#7

save it as a string, in the database, and load it as a string, soppose it will work. and make sure the SQL statement is good, it soppose to work
Reply
#8

Solved. Thanks all for help.
Reply
#9

please +rep if my post helped <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)