PDA

View Full Version : Login / Register dialog's, gives server closed the connection... ** REP OFFERED **


DanishHaq
24/07/2013, 04:55 PM
So, I compiled everything. The problem is, when I go into the game, type a password to register an account, it just simply comes up with "Server closed the connected." I'd appreciate if anyone can help me fix this :|.

It's quite a big error, nothing is working -_-. When I try to use a command too it just says that I'm not logged in.

#include <YSI\y_ini>
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
#define DIALOG_SUCCESS_1 3
#define PATH "/Users/%s.ini"

enum pInfo
{
pPass,
pLevel,
pAdmin,
pHelper,
pDonateRank,
gPupgrade,
pConnectTime,
pReg,
pSex,
pMuted,
pExp,
pCash,
pAccount,
pCrimes,
pKills,
pDeaths,
pArrested,
pWantedDeaths,
pPhoneBook,
pLottoNr,
pFishes,
pBiggestFish,
pJob,
pPayCheck,
pHeadValue,
pJailed,
pJailTime,
pMats,
pDrugs,
pLeader,
pMember,
pRank,
pChar,
pContractTime,
pDetSkill,
pSexSkill,
pBoxSkill,
pLawSkill,
pMechSkill,
pJackSkill,
pCarSkill,
pNewsSkill,
pDrugsSkill,
pCookSkill,
pFishSkill,
pInt,
pLocal,
pTeam,
pModel,
pPnumber,
pPhousekey,
pPbiskey,
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
pCarLic,
pFlyLic,
pBoatLic,
pFishLic,
pGunLic,
pGun1,
pGun2,
pGun3,
pGun4,
pAmmo1,
pAmmo2,
pAmmo3,
pAmmo4,
pCarTime,
pPayDay,
pPayDayHad,
pCDPlayer,
pWins,
pLoses,
pAlcoholPerk,
pDrugPerk,
pMiserPerk,
pPainPerk,
pTraderPerk,
pTut,
pWarns,
pFuel,
pMarried,
pMarriedTo[128],
};
new PlayerInfo[MAX_PLAYERS][pInfo];

forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPass]);
INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
INI_Int("Helper",PlayerInfo[playerid][pHelper]);
INI_Int("Premium",PlayerInfo[playerid][pDonateRank]);
INI_Int("UpgradePoints",PlayerInfo[playerid][gPupgrade]);
INI_Int("ConnectedTime",PlayerInfo[playerid][pConnectTime]);
INI_Int("Registered",PlayerInfo[playerid][pReg]);
INI_Int("Sex",PlayerInfo[playerid][pSex]);
INI_Int("Muted",PlayerInfo[playerid][pMuted]);
INI_Int("Respect",PlayerInfo[playerid][pExp]);
INI_Int("Money",PlayerInfo[playerid][pCash]);
INI_Int("Bank",PlayerInfo[playerid][pAccount]);
INI_Int("Crimes",PlayerInfo[playerid][pCrimes]);
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
INI_Int("Arrested",PlayerInfo[playerid][pArrested]);
INI_Int("WantedDeaths",PlayerInfo[playerid][pWantedDeaths]);
INI_Int("Phonebook",PlayerInfo[playerid][pPhoneBook]);
INI_Int("Lotto",PlayerInfo[playerid][pLottoNr]);
INI_Int("Fishes",PlayerInfo[playerid][pFishes]);
INI_Int("BiggestFish",PlayerInfo[playerid][pBiggestFish]);
INI_Int("Job",PlayerInfo[playerid][pJob]);
INI_Int("PayCheck",PlayerInfo[playerid][pPayCheck]);
INI_Int("HeadValue",PlayerInfo[playerid][pHeadValue]);
INI_Int("Jailed",PlayerInfo[playerid][pJailed]);
INI_Int("JailTime",PlayerInfo[playerid][pJailTime]);
INI_Int("Materials",PlayerInfo[playerid][pMats]);
INI_Int("Drugs",PlayerInfo[playerid][pDrugs]);
INI_Int("Leader",PlayerInfo[playerid][pLeader]);
INI_Int("Member",PlayerInfo[playerid][pMember]);
INI_Int("Rank",PlayerInfo[playerid][pRank]);
INI_Int("Skin",PlayerInfo[playerid][pChar]);
INI_Int("ContractTime",PlayerInfo[playerid][pContractTime]);
INI_Int("DetSkill",PlayerInfo[playerid][pDetSkill]);
INI_Int("SexSkill",PlayerInfo[playerid][pSexSkill]);
INI_Int("BoxSkill",PlayerInfo[playerid][pBoxSkill]);
INI_Int("LawSkill",PlayerInfo[playerid][pLawSkill]);
INI_Int("MechSkill",PlayerInfo[playerid][pMechSkill]);
INI_Int("JackSkill",PlayerInfo[playerid][pJackSkill]);
INI_Int("CarSkill",PlayerInfo[playerid][pCarSkill]);
INI_Int("NewsSkill",PlayerInfo[playerid][pNewsSkill]);
INI_Int("DrugSkill",PlayerInfo[playerid][pDrugsSkill]);
INI_Int("CookSkill",PlayerInfo[playerid][pCookSkill]);
INI_Int("FishSkill",PlayerInfo[playerid][pFishSkill]);
INI_Int("Interior",PlayerInfo[playerid][pInt]);
INI_Int("Local",PlayerInfo[playerid][pLocal]);
INI_Int("Team",PlayerInfo[playerid][pTeam]);
INI_Int("Model",PlayerInfo[playerid][pModel]);
INI_Int("PhoneNumber",PlayerInfo[playerid][pPnumber]);
INI_Int("House",PlayerInfo[playerid][pPhousekey]);
INI_Int("Bizz",PlayerInfo[playerid][pPbiskey]);
INI_Float("Pos_x",PlayerInfo[playerid][pPos_x]);
INI_Float("Pos_y",PlayerInfo[playerid][pPos_y]);
INI_Float("Pos_z",PlayerInfo[playerid][pPos_z]);
INI_Int("CarLic",PlayerInfo[playerid][pCarLic]);
INI_Int("FlyLic",PlayerInfo[playerid][pFlyLic]);
INI_Int("BoatLic",PlayerInfo[playerid][pBoatLic]);
INI_Int("FishLic",PlayerInfo[playerid][pFishLic]);
INI_Int("GunLic",PlayerInfo[playerid][pGunLic]);
INI_Int("Gun1",PlayerInfo[playerid][pGun1]);
INI_Int("Gun2",PlayerInfo[playerid][pGun2]);
INI_Int("Gun3",PlayerInfo[playerid][pGun3]);
INI_Int("Gun4",PlayerInfo[playerid][pGun4]);
INI_Int("Ammo1",PlayerInfo[playerid][pAmmo1]);
INI_Int("Ammo2",PlayerInfo[playerid][pAmmo2]);
INI_Int("Ammo3",PlayerInfo[playerid][pAmmo3]);
INI_Int("Ammo4",PlayerInfo[playerid][pAmmo4]);
INI_Int("CarTime",PlayerInfo[playerid][pCarTime]);
INI_Int("PayDay",PlayerInfo[playerid][pPayDay]);
INI_Int("PayDayHad",PlayerInfo[playerid][pPayDayHad]);
INI_Int("CDPlayer",PlayerInfo[playerid][pCDPlayer]);
INI_Int("Wins",PlayerInfo[playerid][pWins]);
INI_Int("Loses",PlayerInfo[playerid][pLoses]);
INI_Int("AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]);
INI_Int("DrugPerk",PlayerInfo[playerid][pDrugPerk]);
INI_Int("MiserPerk",PlayerInfo[playerid][pMiserPerk]);
INI_Int("PainPerk",PlayerInfo[playerid][pPainPerk]);
INI_Int("TraderPerk",PlayerInfo[playerid][pTraderPerk]);
INI_Int("Tutorial",PlayerInfo[playerid][pTut]);
INI_Int("Warnings",PlayerInfo[playerid][pWarns]);
INI_Int("Fuel",PlayerInfo[playerid][pFuel]);
INI_Int("Married",PlayerInfo[playerid][pMarried]);
INI_Int("MarriedTo",PlayerInfo[playerid][pMarriedTo]);
return 1;
}

stock UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), PATH, playername);
return string;
}

stock udb_hash(buf[]) {
new length=strlen(buf);
new s1 = 1;
new s2 = 0;
new n;
for (n=0; n<length; n++)
{
s1 = (s1 + buf[n]) % 65521;
s2 = (s2 + s1) % 65521;
}
return (s2 << 16) + s1;
}

public OnPlayerConnect(playerid)
{
SetPlayerColor(playerid,COLOR_GRAD2);
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"Account Login","Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,"Account Registation","Type a password below to register a new account.","Register","Quit");
}
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch( dialogid )
{
case DIALOG_REGISTER:
{
if (!response) return SendClientMessage(playerid, COLOR_LIGHTRED, "Error: Please relog and try again."); Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Account Registration","** INVALID PASSWORD **\nType a password below to register a new account.","Register","Quit");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Helper",0);
INI_WriteInt(File,"Premium",0);
INI_WriteInt(File,"UpgradePoints",0);
INI_WriteInt(File,"ConnectedTime",0);
INI_WriteInt(File,"Registered",0);
INI_WriteInt(File,"Sex",0);
INI_WriteInt(File,"Muted",0);
INI_WriteInt(File,"Respect",0);
INI_WriteInt(File,"Money",0);
INI_WriteInt(File,"Bank",0);
INI_WriteInt(File,"Crimes",0);
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_WriteInt(File,"Arrested",0);
INI_WriteInt(File,"WantedDeaths",0);
INI_WriteInt(File,"Phonebook",0);
INI_WriteInt(File,"Lotto",0);
INI_WriteInt(File,"Fishes",0);
INI_WriteInt(File,"BiggestFish",0);
INI_WriteInt(File,"Job",0);
INI_WriteInt(File,"PayCheck",0);
INI_WriteInt(File,"HeadValue",0);
INI_WriteInt(File,"Jailed",0);
INI_WriteInt(File,"JailTime",0);
INI_WriteInt(File,"Materials",0);
INI_WriteInt(File,"Drugs",0);
INI_WriteInt(File,"Leader",0);
INI_WriteInt(File,"Member",0);
INI_WriteInt(File,"Rank",0);
INI_WriteInt(File,"Skin",250);
INI_WriteInt(File,"ContractTime",0);
INI_WriteInt(File,"DetSkill",0);
INI_WriteInt(File,"SexSkill",0);
INI_WriteInt(File,"BoxSkill",0);
INI_WriteInt(File,"LawSkill",0);
INI_WriteInt(File,"MechSkill",0);
INI_WriteInt(File,"JackSkill",0);
INI_WriteInt(File,"CarSkill",0);
INI_WriteInt(File,"NewsSkill",0);
INI_WriteInt(File,"DrugSkill",0);
INI_WriteInt(File,"CookSkill",0);
INI_WriteInt(File,"FishSkill",0);
INI_WriteInt(File,"Interior",0);
INI_WriteInt(File,"Local",0);
INI_WriteInt(File,"Team",0);
INI_WriteInt(File,"Model",0);
INI_WriteInt(File,"PhoneNumber",0);
INI_WriteInt(File,"House",0);
INI_WriteInt(File,"Bizz",0);
INI_WriteFloat(File,"Pos_x",PlayerInfo[playerid][pPos_x]);
INI_WriteFloat(File,"Pos_y",PlayerInfo[playerid][pPos_y]);
INI_WriteFloat(File,"Pos_z",PlayerInfo[playerid][pPos_z]);
if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
{
PlayerInfo[playerid][pPos_x] = 1684.9;
PlayerInfo[playerid][pPos_y] = -2244.5;
PlayerInfo[playerid][pPos_z] = 13.5;
}
if(Spectate[playerid] != 255)
{
PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
}
INI_WriteInt(File,"CarLic",0);
INI_WriteInt(File,"FlyLic",0);
INI_WriteInt(File,"BoatLic",0);
INI_WriteInt(File,"FishLic",0);
INI_WriteInt(File,"GunLic",0);
INI_WriteInt(File,"Gun1",0);
INI_WriteInt(File,"Gun2",0);
INI_WriteInt(File,"Gun3",0);
INI_WriteInt(File,"Gun4",0);
INI_WriteInt(File,"Ammo1",0);
INI_WriteInt(File,"Ammo2",0);
INI_WriteInt(File,"Ammo3",0);
INI_WriteInt(File,"Ammo4",0);
INI_WriteInt(File,"CarTime",0);
INI_WriteInt(File,"PayDay",0);
INI_WriteInt(File,"PayDayHad",0);
INI_WriteInt(File,"CDPlayer",0);
INI_WriteInt(File,"Wins",0);
INI_WriteInt(File,"Loses",0);
INI_WriteInt(File,"AlcoholPerk",0);
INI_WriteInt(File,"DrugPerk",0);
INI_WriteInt(File,"MiserPerk",0);
INI_WriteInt(File,"PainPerk",0);
INI_WriteInt(File,"TraderPerk",0);
INI_WriteInt(File,"Tutorial",0);
INI_WriteInt(File,"Warnings",0);
INI_WriteInt(File,"Fuel",0);
INI_WriteInt(File,"Married",0);
INI_WriteInt(File,"MarriedTo",0);
INI_Close(File);
SpawnPlayer(playerid);
SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
PlayerInfo[playerid][pLevel] = 1;
PlayerInfo[playerid][pPos_x] = 2246.6;
PlayerInfo[playerid][pPos_y] = -1161.9;
PlayerInfo[playerid][pPos_z] = 1029.7;
PlayerInfo[playerid][pInt] = 15;
PlayerInfo[playerid][pLocal] = 255;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pModel] = 264;
new randphone = 1000 + random(9999);
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPhousekey] = 255;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pAccount] = 50000;
PlayerInfo[playerid][pReg] = 1;
GivePlayerMoney(playerid, 5000);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX, "Account Registration","Thank you for registering, have a nice stay!","Done","");
}
}
case DIALOG_LOGIN:
{
if(!response) return SendClientMessage(playerid, COLOR_LIGHTRED, "Error: You didn't log in on time or entered multiple incorrect passwords."); Kick(playerid);
if(response)
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
{
SpawnPlayer(playerid);
new string2[64];
new playername2[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
format(string2, sizeof(string2), "SERVER: Welcome back %s.",playername2);
SendClientMessage(playerid, COLOR_WHITE,string2);
printf("%s has logged in.",playername2);
if (PlayerInfo[playerid][pDonateRank] > 0)
{
SendClientMessage(playerid, COLOR_WHITE,"SERVER: You are a Premium Account user.");
}
if (PlayerInfo[playerid][pAdmin] > 0)
{
format(string2, sizeof(string2), "SERVER: You are logged in as an Admin Level %d.",PlayerInfo[playerid][pAdmin]);
SendClientMessage(playerid, COLOR_WHITE,string2);
}
if (PlayerInfo[playerid][pHelper] > 0)
{
format(string2, sizeof(string2), "SERVER: You are logged in as a Helper.");
SendClientMessage(playerid, COLOR_WHITE,string2);
}
new tmp2[256];
format(tmp2, sizeof(tmp2), "~w~Welcome back ~n~~y~ %s", playername2);
GameTextForPlayer(playerid, tmp2, 5000, 1);
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"Account Login","You entered an incorrect password.\nPlease enter your correct password to login.","Login","Quit");
}
return 1;
}
}
}
return 1;
}
public OnPlayerDisconnect(playerid)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Helper",PlayerInfo[playerid][pHelper]);
INI_WriteInt(File,"Premium",PlayerInfo[playerid][pDonateRank]);
INI_WriteInt(File,"UpgradePoints",PlayerInfo[playerid][gPupgrade]);
INI_WriteInt(File,"ConnectedTime",PlayerInfo[playerid][pConnectTime]);
INI_WriteInt(File,"Registered",PlayerInfo[playerid][pReg]);
INI_WriteInt(File,"Sex",PlayerInfo[playerid][pSex]);
INI_WriteInt(File,"Muted",PlayerInfo[playerid][pMuted]);
INI_WriteInt(File,"Respect",PlayerInfo[playerid][pExp]);
INI_WriteInt(File,"Money",PlayerInfo[playerid][pCash]);
INI_WriteInt(File,"Bank",PlayerInfo[playerid][pAccount]);
INI_WriteInt(File,"Crimes",PlayerInfo[playerid][pCrimes]);
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
INI_WriteInt(File,"Arrested",PlayerInfo[playerid][pArrested]);
INI_WriteInt(File,"WantedDeaths",PlayerInfo[playerid][pWantedDeaths]);
INI_WriteInt(File,"Phonebook",PlayerInfo[playerid][pPhoneBook]);
INI_WriteInt(File,"Lotto",PlayerInfo[playerid][pLottoNr]);
INI_WriteInt(File,"Fishes",PlayerInfo[playerid][pFishes]);
INI_WriteInt(File,"BiggestFish",PlayerInfo[playerid][pBiggestFish]);
INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob]);
INI_WriteInt(File,"PayCheck",PlayerInfo[playerid][pPayCheck]);
INI_WriteInt(File,"HeadValue",PlayerInfo[playerid][pHeadValue]);
INI_WriteInt(File,"Jailed",PlayerInfo[playerid][pJailed]);
INI_WriteInt(File,"JailTime",PlayerInfo[playerid][pJailTime]);
INI_WriteInt(File,"Materials",PlayerInfo[playerid][pMats]);
INI_WriteInt(File,"Drugs",PlayerInfo[playerid][pDrugs]);
INI_WriteInt(File,"Leader",PlayerInfo[playerid][pLeader]);
INI_WriteInt(File,"Member",PlayerInfo[playerid][pMember]);
INI_WriteInt(File,"Rank",PlayerInfo[playerid][pRank]);
INI_WriteInt(File,"Skin",PlayerInfo[playerid][pChar]);
INI_WriteInt(File,"ContractTime",PlayerInfo[playerid][pContractTime]);
INI_WriteInt(File,"DetSkill",PlayerInfo[playerid][pDetSkill]);
INI_WriteInt(File,"SexSkill",PlayerInfo[playerid][pSexSkill]);
INI_WriteInt(File,"BoxSkill",PlayerInfo[playerid][pBoxSkill]);
INI_WriteInt(File,"LawSkill",PlayerInfo[playerid][pLawSkill]);
INI_WriteInt(File,"MechSkill",PlayerInfo[playerid][pMechSkill]);
INI_WriteInt(File,"JackSkill",PlayerInfo[playerid][pJackSkill]);
INI_WriteInt(File,"CarSkill",PlayerInfo[playerid][pCarSkill]);
INI_WriteInt(File,"NewsSkill",PlayerInfo[playerid][pNewsSkill]);
INI_WriteInt(File,"DrugSkill",PlayerInfo[playerid][pDrugsSkill]);
INI_WriteInt(File,"CookSkill",PlayerInfo[playerid][pCookSkill]);
INI_WriteInt(File,"FishSkill",PlayerInfo[playerid][pFishSkill]);
INI_WriteInt(File,"Interior",PlayerInfo[playerid][pInt]);
INI_WriteInt(File,"Local",PlayerInfo[playerid][pLocal]);
INI_WriteInt(File,"Team",PlayerInfo[playerid][pTeam]);
INI_WriteInt(File,"Model",PlayerInfo[playerid][pModel]);
INI_WriteInt(File,"PhoneNumber",PlayerInfo[playerid][pPnumber]);
INI_WriteInt(File,"House",PlayerInfo[playerid][pPhousekey]);
INI_WriteInt(File,"Bizz",PlayerInfo[playerid][pPbiskey]);
INI_WriteFloat(File,"Pos_x",PlayerInfo[playerid][pPos_x]);
INI_WriteFloat(File,"Pos_y",PlayerInfo[playerid][pPos_y]);
INI_WriteFloat(File,"Pos_z",PlayerInfo[playerid][pPos_z]);
INI_WriteInt(File,"CarLic",PlayerInfo[playerid][pCarLic]);
INI_WriteInt(File,"FlyLic",PlayerInfo[playerid][pFlyLic]);
INI_WriteInt(File,"BoatLic",PlayerInfo[playerid][pBoatLic]);
INI_WriteInt(File,"FishLic",PlayerInfo[playerid][pFishLic]);
INI_WriteInt(File,"GunLic",PlayerInfo[playerid][pGunLic]);
INI_WriteInt(File,"Gun1",PlayerInfo[playerid][pGun1]);
INI_WriteInt(File,"Gun2",PlayerInfo[playerid][pGun2]);
INI_WriteInt(File,"Gun3",PlayerInfo[playerid][pGun3]);
INI_WriteInt(File,"Gun4",PlayerInfo[playerid][pGun4]);
INI_WriteInt(File,"Ammo1",PlayerInfo[playerid][pAmmo1]);
INI_WriteInt(File,"Ammo2",PlayerInfo[playerid][pAmmo2]);
INI_WriteInt(File,"Ammo3",PlayerInfo[playerid][pAmmo3]);
INI_WriteInt(File,"Ammo4",PlayerInfo[playerid][pAmmo4]);
INI_WriteInt(File,"CarTime",PlayerInfo[playerid][pCarTime]);
INI_WriteInt(File,"PayDay",PlayerInfo[playerid][pPayDay]);
INI_WriteInt(File,"PayDayHad",PlayerInfo[playerid][pPayDayHad]);
INI_WriteInt(File,"CDPlayer",PlayerInfo[playerid][pCDPlayer]);
INI_WriteInt(File,"Wins",PlayerInfo[playerid][pWins]);
INI_WriteInt(File,"Loses",PlayerInfo[playerid][pLoses]);
INI_WriteInt(File,"AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]);
INI_WriteInt(File,"DrugPerk",PlayerInfo[playerid][pDrugPerk]);
INI_WriteInt(File,"MiserPerk",PlayerInfo[playerid][pMiserPerk]);
INI_WriteInt(File,"PainPerk",PlayerInfo[playerid][pPainPerk]);
INI_WriteInt(File,"TraderPerk",PlayerInfo[playerid][pTraderPerk]);
INI_WriteInt(File,"Tutorial",PlayerInfo[playerid][pTut]);
INI_WriteInt(File,"Warnings",PlayerInfo[playerid][pWarns]);
INI_WriteInt(File,"Fuel",PlayerInfo[playerid][pFuel]);
INI_WriteInt(File,"Married",PlayerInfo[playerid][pMarried]);
INI_WriteInt(File,"MarriedTo",PlayerInfo[playerid][pMarriedTo]);
INI_Close(File);
return 1;
}

PS: I used this tutorial: http://forum.sa-mp.com/showthread.php?t=273088 and I'm creating a GF edit.

Vexus
24/07/2013, 08:31 PM
{EDIT}: Don't listen to me. Just figured out how stupid I sounded. :cool:

DanishHaq
24/07/2013, 11:49 PM
Bump

Vanter
25/07/2013, 12:23 AM
show us any command please.