How to get value from MySQL database?
#1



This code, I tried to get integer value from db but its not
Reply
#2

Thats incorrect usage of printf, use it like this
PHP код:
printf("%d"PlayerInfo[playerid][pAmmo1]); 
And instead of giving pic of code please paste the code.
And use cache_get_field_content_int for pSkyRank if its integer type.
Reply
#3

pSpyRank is string (text)
Reply
#4

Third parameter of cache_get_row must be a variable.
cache_get_row(row, field_idx, destination[], connectionHandle = 1, max_len = sizeof(destination))
Take a look at this : https://sampwiki.blast.hk/wiki/MySQL/R33#cache_get_row
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)