Problems with sqlite, integers, print and printf.
#2

So, I think players[playerid][pid] is an integer, you can use function db_get_field_assoc to save value as string. It should look like this:
Код:
new String[/*MAXIMAL LENGTH OF QUERY*/];
db_get_field_assoc(result, "id", String, 11);
players[playerid][pid] = strval(String);
Reply


Messages In This Thread
Problems with sqlite, integers, print and printf. - by welderlourenco - 10.12.2014, 20:45
Re: Problems with sqlite, integers, print and printf. - by Raweresh - 10.12.2014, 21:19
Re: Problems with sqlite, integers, print and printf. - by welderlourenco - 10.12.2014, 21:30

Forum Jump:


Users browsing this thread: 1 Guest(s)