SA-MP Forums Archive
BlueG MySQL R20 - will not read strings - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: BlueG MySQL R20 - will not read strings (/showthread.php?tid=438884)



BlueG MySQL R20 - will not read strings - nescha - 22.05.2013

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.


Re: BlueG MySQL R20 - will not read strings - Scenario - 22.05.2013

Searching is your best friend.

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


AW: BlueG MySQL R20 - will not read strings - nescha - 22.05.2013

My best friend wants nothing to do with me.

Thank you.