EasySqlite
#1

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;
}
Reply
#2

Show the player enum plus you should check this after the player has logged in and not on connect.
Reply
#3

Quote:
Originally Posted by Exhibit
View Post
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.
Reply
#4

You should be using it like this

SL::GetIntEntryEx(const table[], const field[], const column[], scolumn[], DB:database = DB:1)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)