Unknown server crash?
#5

Hi,

it is not a problem with OnGameModeInit. I noticed, that there is a (strange) bug with a definition of [MAX_PLAYERS]. This is, what I've done:

pawn Код:
//global definition
new diesdas1[MAX_PLAYERS],diesdas2[MAX_PLAYERS];

Now in a command:

ocmd:test(playerid)
{
diesdas1[playerid] = 1;
diesdas2[playerid] = 1;
return 1;
}

OnPlayerDisconnect:

if(diesdas1[playerid] == 1){diesdas1[playerid] = 0}
if(diesdas2[playerid] == 1){diesdas2[playerid] = 0}
Starting the server: crash! Without "diesdas" definitions the server will start fine. What can be the problem?

Regards, ThomasTailor93
Reply


Messages In This Thread
Unknown server crash? - by ThomasTailor93 - 09.05.2012, 17:56
Re: Unknown server crash? - by TheDominator - 09.05.2012, 18:05
AW: Unknown server crash? - by ThomasTailor93 - 09.05.2012, 18:08
Re: Unknown server crash? - by TheDominator - 09.05.2012, 18:17
AW: Unknown server crash? - by ThomasTailor93 - 09.05.2012, 18:21
Re: Unknown server crash? - by BloodyEric - 09.05.2012, 18:32
AW: Unknown server crash? - by ThomasTailor93 - 09.05.2012, 18:35
Re: Unknown server crash? - by TheDominator - 09.05.2012, 18:37
AW: Unknown server crash? - by ThomasTailor93 - 09.05.2012, 18:41
Re: Unknown server crash? - by TheDominator - 09.05.2012, 18:45

Forum Jump:


Users browsing this thread: 1 Guest(s)