Loading Hexadecimal numbers from MySQL DB
#1

Well, I'm creating a Gang FilterScript and I gotta load the Turf color from DB(Hex). I put(as structure) the Hex number as a String. But when it loads, I don't know what to do. If I print a %d it goes wrong, the same for %x I really don't know what to do.

PHP код:
            factionInfofactionid ][ fColor ]      = strvalfield[15] ); 

PHP код:
printf("[] Rank1: %s|Color: %d" factionInfofactionid ][ fRank1 ] ); 
Reply
#2

Double
Reply
#3

Save it into the DB as an integer, in pawn 0xFF is exactly the same as 255
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)