Weirdest problem ever.
#1

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.
Reply
#2

Those colors are invalid the account saving system has nothing to do with it.
Reply
#3

It worked before and when i added those codes it stopped.

And those are vaild.
Reply
#4

Can you show us the code of that dialog?
Reply
#5

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

Reply
#6

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)
Reply
#7

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.
Reply
#8

It's all of my dialogs. Do you want them all ?
Reply
#9

all of them have this? then show me a one of them
Reply
#10

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;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)