[SOLVED] dudb cant check my level!
#1

i have a file in my Users directory and my code :

pawn Код:
udb_UserInt(PlayerName(playerid),"level");
i tested and it returns me 0 , but i have in the txt file :

Код:
jailed=0
level=4
muted=0
i checked the locations and their correct
Reply
#2

if i understood you right, you donґt get the level when you join, which is set in the .txt right?..
you have to add this at your login command (if you have one...)
if(udb_CheckLogin(PlayerName(playerid),params))
{
PlayerInfo[playerid][level] = (dUserINT(PlayerName(playerid)).("level")); // or whatever you are using for your level:P
Reply
#3

Quote:
Originally Posted by Sascha
if i understood you right, you donґt get the level when you join, which is set in the .txt right?..
you have to add this at your login command (if you have one...)
if(udb_CheckLogin(PlayerName(playerid),params))
{
PlayerInfo[playerid][level] = (dUserINT(PlayerName(playerid)).("level")); // or whatever you are using for your level:P
actually its fixed.....i know how and all but...its because of this : i modified dudb.inc the wrong way :/
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)