16.10.2013, 04:11
Quote:
try this with that cmd
pawn Код:
i guess that the problem is in register dialog show me the regiter dialog pls |
pawn Код:
if(dialogid == DIALOG_REGISTER)
{
if(response)
{
if(!strlen(inputtext))return ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Please Register your account here!","Type your password to make one your account!","Register","Leave");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"Data");
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Scores",0);
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_WriteInt(File,"Admin Level",0);
INI_WriteInt(File,"VIP Level",0);
INI_Close(File);
SendClientMessage(playerid,COLOR_GREEN,"[INFO]:You Have succesfully registered!");
Logged[playerid] = 1;
}
if(!response)return Kick(playerid);
}
Quote:
Show your saving thing, you are saving it on OnPlayerDisconnect I'm sure. Show the script related to saving functions not all!
|
pawn Код:
public OnPlayerDisconnect(playerid,reason)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"Data");
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"Admin Level",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
INI_WriteInt(File,"VIP Level",PlayerInfo[playerid][pVip]);
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKill]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeath]);
INI_Close(File);
return 1;
}