BlueG MySQL R20 - will not read strings
#1

Hello,

can you explain me what is wrong here with this code? The console just gives me the , but not the whole string which are saved in the DB.

pawn Код:
public LoadUserData(playerid)
{
    new rows, fields;
    cache_get_data(rows, fields, sql);
    if(rows)
    {
        cache_get_field_content(0, "BReason", pInfo[playerid][pBreason]);
        cache_get_field_content(0, "BAdmin", pInfo[playerid][pBadmin]);
        printf("%s, %s",
        pInfo[playerid][pBreason], pInfo[playerid][pBadmin]);
    } else printf("ERROR");
    return 1;
}
I tried the same with cache_get_row, but this will stil not work too. With integers (numbers) everything works ok, but not with strings...

I hope anyone knows the problem and can help me. Its very important for me and i would be very thankful for any help.
Reply
#2

Searching is your best friend.

https://sampforum.blast.hk/showthread.php?tid=56564&page=340
Reply
#3

My best friend wants nothing to do with me.

Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)