20.07.2011, 19:16
[Tutorial] Login and Register System - Dialogs - Using SII
20.07.2011, 19:56
pawn Code:
#include <a_samp>
#include <SII>
#define DIALOG_REGISTER 2000
#define DIALOG_LOGIN 2001
#define WHITE "{FFFFFF}"
#define RED "{F81414}"
#define GREEN "{00FF22}"
#define LIGHTBLUE "{00CED1}"
new gPlayerName[MAX_PLAYERS][MAX_PLAYER_NAME];
#define TEAM_GROVE 1
#define TEAM_BALLA 2
#define TEAM_VAGOS 3
#define TEAM_GROVE_COLOR 0x00FF00AA // Bright Green (in RGBA format)
#define TEAM_BALLA_COLOR 0xFF00FFAA // Bright Purple
#define TEAM_VAGOS_COLOR 0xFFFF00AA // Yellow
new gTeam[MAX_PLAYERS];
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
enum pInfo
{
pPass,
pScore,
pCash,
pAdmin,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
stock getINI(playerid)
{
new account[64];
format(account,30,"Users/%s.ini",gPlayerName[playerid]);
return account;
}
20.07.2011, 20:01
Ehm, thanks, but would you please say what you changed?
20.07.2011, 20:08
Lol, another error, what's wrong this time?
Code:
deathmatch.pwn(256) : warning 217: loose indentation
Code:
public OnPlayerDisconnect(playerid, reason) { if(INI_Open(getINI(playerid))) { INI_WriteInt("Score",PlayerInfo[playerid][pScore]); INI_WriteInt("Cash",PlayerInfo[playerid][pCash]); INI_WriteInt("Admin",PlayerInfo[playerid][pAdmin]); INI_Save(); INI_Close(); } return 1; // what the hell is wrong here? }
20.07.2011, 20:28
It means that your line aren't adjusted
pawn Code:
public OnPlayerDisconnect(playerid, reason)
{
if(INI_Open(getINI(playerid)))
{
INI_WriteInt("Score",PlayerInfo[playerid][pScore]);
INI_WriteInt("Cash",PlayerInfo[playerid][pCash]);
INI_WriteInt("Admin",PlayerInfo[playerid][pAdmin]);
INI_Save();
INI_Close();
}
return 1;
}
20.07.2011, 20:56
I've never expected you to receive so many errors. The tutorial explains each of the functions in depth and their uses.
22.07.2011, 22:12
Quote:
Lol, another error, what's wrong this time?
Code:
deathmatch.pwn(256) : warning 217: loose indentation Code:
public OnPlayerDisconnect(playerid, reason) { if(INI_Open(getINI(playerid))) { INI_WriteInt("Score",PlayerInfo[playerid][pScore]); INI_WriteInt("Cash",PlayerInfo[playerid][pCash]); INI_WriteInt("Admin",PlayerInfo[playerid][pAdmin]); INI_Save(); INI_Close(); } return 1; // what the hell is wrong here? } |
10.10.2012, 10:44
Kush please help it works but i have sii and yini but... if i register its an fail ini users/name no works not saves the names
23.10.2012, 16:06
(
Last edited by danilonba; 23/10/2012 at 05:48 PM.
)
nice.
17.04.2013, 13:07
This tutorial is nice!But I have an problem.When I type corect password in Login Dialog,it say:"The password is wrong"message!Can you help me?
28.06.2013, 05:00
Why my Kills Score Death etc is not saving after logout and come again?
28.06.2013, 19:57
Thank you!
02.07.2013, 03:52
By far the most beautiful tutorial I have ever read.
02.07.2013, 17:19
Thank you for your help!
« Next Oldest | Next Newest »
Users browsing this thread: 3 Guest(s)