07.12.2014, 11:51
If I use cache_get_field_content_int on an INT field which can be null it says invalid data type.
I came up with this:
But this doesn't feel nice, especially when I need to process more than few fields like this.
Is there a more elegant sollution?
I came up with this:
pawn Код:
new tmp[32];
cache_get_field_content(0, "IntField",tmp);
place_where_i_want_to_put_it = (ismysqlnull(tmp)) ? (some int value) : (strval(tmp));
Is there a more elegant sollution?