EasySqlite - 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: EasySqlite (
/showthread.php?tid=658348)
EasySqlite -
xRadical3 - 02.09.2018
I use
EasySqlite and I'm have problem using one of these functions.
How to use
GetIntEntry or
GetIntEntryEx??
Can someone help me?
Code:
public OnPlayerConnect(playerid)
{
AdminRank[playerid] = 0;
new handle = SL::OpenEx(SL::READ, "PlayerRanks", "p_name", pName(playerid));
AdminRank[playerid] = SL::GetIntEntryEx(handle, "p_rank", AdminRank[playerid]);
SL::Close(handle);
if(AdminRank[playerid] == 1) return SendClientMessage(playerid,EvYel,"*Welcome Admin!");
return 1;
}
Re: EasySqlite -
Exhibit - 02.09.2018
Show the player enum plus you should check this after the player has logged in and not on connect.
Re: EasySQLite -
xRadical3 - 03.09.2018
Quote:
Originally Posted by Exhibit
Show the player enum plus you should check this after the player has logged in and not on connect.
|
I just want to get the admin level that is stored in the DataBase.
And given the player admin level.
Re: EasySqlite -
ShihabSoft - 03.09.2018
You should be using it like this
SL::GetIntEntryEx(const table[], const field[], const column[], scolumn[], DB:database = DB:1)