[ HELP ] Server switch itself off!
#7

pawn Код:
public OnPlayerConnect(playerid)
{
    for(new i;i<MAX_PLAYERS;i++)
    {
    TextDrawShowForPlayer(playerid,BoxOben);
    TextDrawShowForPlayer(playerid,BoxUnten);
    runningmapconnect[playerid] = 1;
    if(runningmap == 0)
    {
        SetTimer("BoxHide",7000,false);
    }
    else
    {
        spec();
    }
    }
    return 1;
}
not sure what are you trying to do here, but that is wrong.

try this:
pawn Код:
public OnPlayerConnect(playerid)
{
        TextDrawShowForPlayer(playerid,BoxOben);
    TextDrawShowForPlayer(playerid,BoxUnten);
    runningmapconnect[playerid] = 1;
    if(runningmap == 0)
    {
        SetTimerEx("BoxHide", 7000, false, "%d", playerid);
    }
    else
    {
        spec();
    }
    return 1;
}
you don't need to loop at OnPlayerConnect, it has a parameter (playerid) to issue commands/functions.
Reply


Messages In This Thread
[ HELP ] Server switch itself off! - by Keilbritschn - 22.04.2012, 08:12
AW: [ HELP ] Server switch itself off! - by Keilbritschn - 22.04.2012, 10:35
Re: [ HELP ] Server switch itself off! - by varga - 22.04.2012, 13:37
Re: [ HELP ] Server switch itself off! - by varga - 22.04.2012, 13:40
Re: [ HELP ] Server switch itself off! - by Sting. - 22.04.2012, 13:40
Re: [ HELP ] Server switch itself off! - by varga - 22.04.2012, 13:49
Re: [ HELP ] Server switch itself off! - by spedico - 22.04.2012, 14:07

Forum Jump:


Users browsing this thread: 1 Guest(s)