SA-MP Forums Archive
Weirdest problem ever. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Weirdest problem ever. (/showthread.php?tid=543896)



Weirdest problem ever. - Glossy42O - 29.10.2014

After i added those two
PHP код:
public OnPlayerDisconnect(playeridreason)
{
    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(playeridPlayerInfo[playerid][pCash]);
    
SetPlayerScore(playeridPlayerInfo[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(playeridreason

    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(playeridPlayerInfo[playerid][pCash]); 
    
SetPlayerScore(playeridPlayerInfo[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(playeridparams[])
{
  
ShowPlayerDialog(playerid922DIALOG_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;