09.05.2012, 18:21
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:
Starting the server: crash! Without "diesdas" definitions the server will start fine. What can be the problem?
Regards, ThomasTailor93
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}
Regards, ThomasTailor93