Register/login problem... Please help!!
#6

Quote:
Originally Posted by [SAP
Francis ]
You have a brace which doesn't belong here, that's all I'm saying.

pawn Код:
new LogOff[MAX_PLAYERS];

public OnPlayerDisconnect(playerid, reason)
{
    // OnPlayerUpdate(playerid); // This shouldn't be here, because SA-MP already has a callback like so. Rename the function to something else?
    if(IsPlayerConnected(playerid))
    {
        if(LogOff[playerid])
        {
            // Script here I'd say.
        }
    }
    return 1;
}
Yea, but my friend said so it should, cause it updates player's score and etc. when he comes back :S
And what script? That's what I was asking for... I am dumb
Reply


Messages In This Thread
Register/login problem... Please help!! - by Puzi - 29.07.2009, 17:11
Re: Register/login problem... Please help!! - by Correlli - 29.07.2009, 17:13
Re: Register/login problem... Please help!! - by Puzi - 29.07.2009, 17:15
Re: Register/login problem... Please help!! - by Correlli - 29.07.2009, 23:25
Re: Register/login problem... Please help!! - by Francis[French] - 29.07.2009, 23:34
Re: Register/login problem... Please help!! - by Puzi - 31.07.2009, 07:46
Re: Register/login problem... Please help!! - by yezizhu - 31.07.2009, 08:52

Forum Jump:


Users browsing this thread: 1 Guest(s)