A problem in OnPlayerDisconnect
#1

Hey guy's since my last topic had 5 pages, i decided to open a new thread about my problem.
https://sampforum.blast.hk/showthread.php?tid=342893 - My last theard.


PHP Code:
public OnPlayerDisconnect(playeridreason)
{
        if(
pLogged[playerid] == 1) {
        new 
INI:iFile INI_Open(PlayerPath(playerid));
        
INI_SetTag(iFile,"data");
        
INI_WriteInt(iFile,"Cash",GetPlayerMoney(playerid));
        
INI_WriteInt(iFile,"Score",GetPlayerScore(playerid));
        
INI_Close(iFile);
    }
        
pLogged[playerid] = 0;
        
TextDrawHideForPlayer(playeridTextdrawConnect0);  // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect1); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect2); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect3); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect4); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect5); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect6); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect7); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect8); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect9); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect10); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect11); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect12); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect13); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect14); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect15); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect16); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect17); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect18); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTextdrawConnect19); // Connect Textdraw
        
TextDrawHideForPlayer(playeridTime1), TextDrawHideForPlayer(playeridDate); // DATE AND TIME
        
TextDrawHideForPlayer(playeridCredit); // Credits
        
StopAudioStreamForPlayer(playerid);
        
Radio[playerid] = false;
        return 
1;
    }
        return 
0;

PHP Code:
(781) : error 029invalid expressionassumed zero 
(781) : error 004: function "S@@_OnPlayerDisconnect" is not implemented 
The line 781 is the 'public OnPlayerDisconnect....'.
Reply


Messages In This Thread
A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 07:39
Re: A problem in OnPlayerDisconnect - by iRage - 17.05.2012, 07:49
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 08:14
Re: A problem in OnPlayerDisconnect - by $$Killer$$ - 17.05.2012, 08:18
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 08:21
Re: A problem in OnPlayerDisconnect - by $$Killer$$ - 17.05.2012, 08:35
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 08:43
Re: A problem in OnPlayerDisconnect - by Kitten - 17.05.2012, 08:46
Re: A problem in OnPlayerDisconnect - by $$inSane - 17.05.2012, 08:48
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 08:48
Re: A problem in OnPlayerDisconnect - by Kitten - 17.05.2012, 08:52
Re: A problem in OnPlayerDisconnect - by $$inSane - 17.05.2012, 09:06
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 09:42
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 09:56
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 10:58
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 11:05
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 11:21
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 11:39
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 12:08
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 13:43
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 17:29

Forum Jump:


Users browsing this thread: 2 Guest(s)