22.05.2013, 16:22
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.
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.
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 hope anyone knows the problem and can help me. Its very important for me and i would be very thankful for any help.
