Weirdest problem ever. -
Glossy42O - 29.10.2014
After i added those two
PHP код:
public OnPlayerDisconnect(playerid, reason)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File, "Money", GetPlayerMoney(playerid));
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
INI_WriteInt(File,"Score",GetPlayerScore(playerid));
INI_Close(File);
IsPlayerPolice[playerid] =0;
return 1;
}
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPass]);
INI_Int("Score", PlayerInfo[playerid][pScore]);
INI_Int("AdminLevel",PlayerInfo[playerid][pAdmin]);
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
INI_Int("Score", PlayerInfo[playerid][pScore]);
INI_Int("Money", PlayerInfo[playerid][pCash]);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
return 1;
}
That happened lol.
Re: Weirdest problem ever. -
Steel_ - 29.10.2014
Those colors are invalid the account saving system has nothing to do with it.
Re: Weirdest problem ever. -
Glossy42O - 29.10.2014
It worked before and when i added those codes it stopped.
And those are vaild.
Re: Weirdest problem ever. -
Metroplex - 30.10.2014
Can you show us the code of that dialog?
Re: Weirdest problem ever. -
Glossy42O - 30.10.2014
It's all my dialogs do i need to show all of them and btw
It didn't happen before only when i added this
PHP код:
public OnPlayerDisconnect(playerid, reason)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File, "Money", GetPlayerMoney(playerid));
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
INI_WriteInt(File,"Score",GetPlayerScore(playerid));
INI_Close(File);
IsPlayerPolice[playerid] =0;
return 1;
}
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPass]);
INI_Int("Score", PlayerInfo[playerid][pScore]);
INI_Int("AdminLevel",PlayerInfo[playerid][pAdmin]);
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
INI_Int("Score", PlayerInfo[playerid][pScore]);
INI_Int("Money", PlayerInfo[playerid][pCash]);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
return 1;
}
Re: Weirdest problem ever. -
Quickie - 30.10.2014
i dont think its from your file system recently added
try this one
pawn Код:
{FFFF33}/*(space then )*/>>/*(space then)*/{00CC00} // this happens to me sometimes (symbol problems)
Re: Weirdest problem ever. -
Sawalha - 30.10.2014
your saving system hasn't any relation with this bug, and if you think like this , it must be a "coincidence"
Please, show your ShowPlayerDialog line that related to this dialog.
Re: Weirdest problem ever. -
Glossy42O - 30.10.2014
It's all of my dialogs. Do you want them all ?
Re: Weirdest problem ever. -
Sawalha - 30.10.2014
all of them have this? then show me a one of them
Re: Weirdest problem ever. -
Glossy42O - 30.10.2014
PHP код:
CMD:help(playerid, params[])
{
ShowPlayerDialog(playerid, 922, DIALOG_STYLE_MSGBOX, "Help", "{FF0000}>>{FFFF33}|{00CC00}LSCNR was created by [Cali]Stuun\r\n{FF0000}>>{FFFF33}|{00CC00}To get cash you have to rob you can use /robplayer to rob players\r\n{FF0000}>>{FFFF33}|{00CC00}To get more cash you can rob banks and stores /robbank,/robstore\r\n{FF0000}>>{FFFF33}|{00CC00}For server commands use /cmds or /commands and police commands use /pcmds\r\n{FF0000}>>{FFFF33}|{00CC00}For more information visit www.lscnr-samp.url.ph","OK","");
return 1;
}