25.03.2017, 00:46
I'm using Blueg's MYSql R41-2 and i have this code:
That gives me:
Also in this stock:
Always undefined symbol mysql_real_escape_string.
pawn Код:
public OnLoginDate(extraid, username[])
{
if (!IsPlayerConnected(extraid))
return 0;
static
rows,
fields,
date[36];
cache_get_data(rows, fields, g_SQL);
if (rows) {
cache_get_row(0, 0, date, g_SQL);
new buf[128];
format(buf, sizeof(buf), "%s's last login was on: %s", username,date);
SendClientMessage(extraid,COLOR_RED, buf);
}
else {
SendClientMessage(extraid,COLOR_RED, "Invalid username specified.");
}
return 1;
}
pawn Код:
error 017: undefined symbol "cache_get_data"
error 017: undefined symbol "cache_get_row"
pawn Код:
stock SQL_ReturnEscaped(const string[])
{
new
entry[256];
mysql_real_escape_string(string, entry, g_iHandle);
return entry;
}