coz i'm idiot. Thanks.
One more, and last one.
IMO, this should check if in table pfield_content is filled in field_11, and if it's client's steamid. And if there is filled in, to get member_id. And then if it has found steamid in there to send as a true, or if not to send as a false. The point is, it doesn't work. It do connects to database etc. And the error console says is "[0] Line 529, testytest.sp::ForumAccount()"
PHP Code:
bool:ForumAccount(client)
{
if (IsClientInGame(client))
{
new String:steamid[50];
GetClientAuthString(client, steamid, sizeof(steamid))
new String:sqlstring[200];
Format(sqlstring, sizeof(sqlstring), "SELECT member_id FROM pfields_content WHERE field_11 = %s ", steamid);
SQL_LockDatabase(dbconipb);
new Handle:sql = SQL_Query(dbconipb, sqlstring);
new forumek_bool = SQL_GetRowCount(sql);
CloseHandle(sql);
SQL_UnlockDatabase(dbconipb);
if (forumek_bool)
{
return true;
}
else
{
return false;
}
}
return true;
}
What's wrong in here?