25.05.2013, 23:38
Hi.
So, I'll explain here.
I made a gamemode where I save the gang zones in a SQL table called 'gangzones' where i put the gang zone color in another field called 'color'. So I just take it with "mysql_fetch_field_row", but then I have the string and not the hexadecimal number, so I can't compile my .pwn because the compiler says there's an error..
How can I convert a string into an hexadecimal number?
PS: my field "color" is already defined as 0xAABBCCFF, for example.. so there's already "0x".
So, I'll explain here.
I made a gamemode where I save the gang zones in a SQL table called 'gangzones' where i put the gang zone color in another field called 'color'. So I just take it with "mysql_fetch_field_row", but then I have the string and not the hexadecimal number, so I can't compile my .pwn because the compiler says there's an error..
How can I convert a string into an hexadecimal number?
PS: my field "color" is already defined as 0xAABBCCFF, for example.. so there's already "0x".