|
Very top of script, and the stock goes anywhere, other than that. Good tutorial Kush
|
#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;
}
deathmatch.pwn(256) : warning 217: loose indentation
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?
}
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;
}
|
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?
}
|