A bit help with dini !:D!
#1

Well, I got those errors :


PHP код:
C:\Documents and Settings\gidon\щемзп дтбегд\Windows\pawno\include\Dini.inc(50) : error 017undefined symbol "fexist"
C:\Documents and Settings\gidon\щемзп дтбегд\Windows\pawno\include\Dini.inc(50) : warning 215expression has no effect
C
:\Documents and Settings\gidon\щемзп дтбегд\Windows\pawno\include\Dini.inc(50) : error 001expected token";"but found ")"
C:\Documents and Settings\gidon\щемзп дтбегд\Windows\pawno\include\Dini.inc(50) : error 029invalid expressionassumed zero
C
:\Documents and Settings\gidon\щемзп дтбегд\Windows\pawno\include\Dini.inc(50) : fatal error 107too many error messages on one line 
This's the script I made, maybe this is what making the problem :

PHP код:
if (strcmp("/register"cmdtexttrue10) == 0)
    {
        new 
name[MAX_PLAYER_NAME], file[256], string[128tmp[256];
        
GetPlayerName(playeridnamesizeof(name));
            
tmp strtok(cmdtextidx);
         
format(filesizeof(file), SERVER_USER_FILEname);
         if(!
dini_Exists(file))
         {
         
SendClientMessage(playerid,COLOR_DONATORGOLD,"You've created account, type /login to log in.");
        
dini_IntSet(file"Password"udb_hash(tmp));
        
dini_IntSet(file"AdminLevel",PlayerInfo[playerid][pAdminLevel] = 0);
        
dini_IntSet(file"Money",PlayerInfo[playerid][pCash] = 500);
        
dini_IntSet(file"Score",PlayerInfo[playerid][pScore] = 0);
        
SendClientMessage(playerid,COLOR_DONATORGOLD,"[SYSTEM]: You succesfully registered the nickname %s with password %s, you have been auto logged in");
        
gPlayerLogged[playerid] = 1;
         }
         if(
fexist(file))
         {
         
SendClientMessage(playerid,COLOR_DONATORGOLD,"This account is already registered!");
         }
        return 
1;
    }
    if (
strcmp("/login"cmdtexttrue10) == 0)
        {
               new 
name[MAX_PLAYER_NAME], file[256], string[128];
               
GetPlayerName(playeridnamesizeof(name));
               
format(filesizeof(file), SERVER_USER_FILEname);
               new 
pass;
               
pass dini_Int(file"Password");
               if(
udb_hash(tmp) != pass)
               {
                    
SendClientMessage(playeridCOLOR_RED"Wrong password");
                }
                else
                {
                    
gPlayerLogged[playerid] = 1;
                    
PlayerInfo[playerid][pAdminLevel] = dini_Int(file"AdminLevel");
                    
SetPlayerScore(playeridPlayerInfo[playerid][pScore]);
                    
GivePlayerMoney(playeriddini_Int(file"Money")-GetPlayerMoney(playerid));
                } 
Thank you !
Reply
#2

Try updating your dini-include, it's seems to be fucked up.

Or have you changed file.inc? Update that one to (with the one in the SAMP package).
Reply
#3

Amm, In samp package there isn't dini.inc :O.

Would you give the include please?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)