SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 23/05/2019, 04:35 PM   #1
DomagojSellug
Big Clucker
 
DomagojSellug's Avatar
 
Join Date: Sep 2016
Location: Croatia
Posts: 152
Reputation: 9
Default Problems with Register/Login (dini)

Code:
public OnPlayerDisconnect(playerid, reason)
{
    new name[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), PATH, name);
    if(gPlayerLogged[playerid] == 1)
    {
        dini_IntSet(file, "Score", PlayerInfo[playerid][pScore]);  THIS IS CODE 112
        dini_IntSet(file, "Money", PlayerInfo[playerid][pCash]);
        dini_IntSet(file, "Admin", PlayerInfo[playerid][pAdmin]);
        dini_IntSet(file, "Wanted",PlayerInfo[playerid][pWanted]);
        dini_IntSet(file, "Kills",PlayerInfo[playerid][pKills]);
        dini_IntSet(file, "Deaths", PlayerInfo[playerid][pDeaths]);
    }
    gPlayerLogged[playerid] = 0;
	return 1;
}

Code:
d:\Users\Korisnik\Desktop\Cops And Robers\gamemodes\cnr.pwn(112) : error 001: expected token: ",", but found "["
d:\Users\Korisnik\Desktop\Cops And Robers\gamemodes\cnr.pwn(112) : error 029: invalid expression, assumed zero
d:\Users\Korisnik\Desktop\Cops And Robers\gamemodes\cnr.pwn(112) : warning 215: expression has no effect
d:\Users\Korisnik\Desktop\Cops And Robers\gamemodes\cnr.pwn(112) : error 001: expected token: ";", but found "]"
d:\Users\Korisnik\Desktop\Cops And Robers\gamemodes\cnr.pwn(112) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
For some reason the scrips keeps givng me errors. As you can see, I'm using DINI, but it's not really working great as you can see. I removed [playerid] and the script was compiled, but then the registration/login isn't working, it doesn't save accounts.
__________________
My work:


Weapon Shop FS
Click on me!
DomagojSellug is offline   Reply With Quote
Old 23/05/2019, 07:04 PM   #2
DomagojSellug
Big Clucker
 
DomagojSellug's Avatar
 
Join Date: Sep 2016
Location: Croatia
Posts: 152
Reputation: 9
Default Re: Problems with Register/Login (dini)

The admins can lock this. I resolved it by simply deleting dini since nothing was working, and after reading a few threads I switched to Y_INI which seems to be much better.
__________________
My work:


Weapon Shop FS
Click on me!
DomagojSellug is offline   Reply With Quote
Old 24/05/2019, 11:21 AM   #3
cSharp
Big Clucker
 
Join Date: Oct 2018
Posts: 64
Reputation: 13
Default Re: Problems with Register/Login (dini)

dude


ditch y_ini

why are you even using initialization files as a database in 2019?
__________________
cSharp is offline   Reply With Quote
Old 24/05/2019, 11:13 PM   #4
Exhibit
Big Clucker
 
Join Date: Dec 2015
Location: Pakistan
Posts: 178
Reputation: 22
Default Re: Problems with Register/Login (dini)

I suggest you use this since it's syntax is like y_ini https://forum.sa-mp.com/showthread.php?t=591250
__________________
rg-clan.xyz
Exhibit is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Register / Login with dini radiobizza Scripting Help 2 16/11/2013 06:46 PM
Dini Login/Register system julius013 Scripting Help 0 31/08/2013 01:18 PM
[FilterScript] TuL's Register & Login FS (dini) USEFUL tuuler Filterscripts 4 23/03/2012 01:46 PM
[Looking For] DINI Register/Login Niixie Help Archive 14 26/12/2009 10:08 AM


All times are GMT. The time now is 12:15 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.