06.02.2010, 07:27
Hello me problem as the server restart the people to join the restart they receive a crash
OnGameModeExit call'back
What here wrong?
OnGameModeExit call'back
Код:
public OnGameModeExit() { KillTimer(AFKLaikmatis); TextDrawHideForAll(Uknowcmd); TextDrawDestroy(Uknowcmd); TextDrawHideForAll(Teleportas); TextDrawDestroy(Teleportas); TextDrawHideForAll(Textdrawas0); TextDrawDestroy(Textdrawas0); TextDrawHideForAll(Textdrawas1); TextDrawDestroy(Textdrawas1); TextDrawHideForAll(Textdrawas2); TextDrawDestroy(Textdrawas2); TextDrawHideForAll(Textdrawas3); TextDrawDestroy(Textdrawas3); TextDrawHideForAll(Textdrawas4); TextDrawDestroy(Textdrawas4); TextDrawHideForAll(Textdrawas5); TextDrawDestroy(Textdrawas5); TextDrawHideForAll(DmPalikti); TextDrawDestroy(DmPalikti); TextDrawHideForAll(ParkourText); TextDrawDestroy(ParkourText); TextDrawHideForAll(Textdraw0); TextDrawDestroy(Textdraw0); for(new i = 0;i < MAX_PLAYERS; i++) { TextDrawHideForPlayer(i,LVL[i]); TextDrawHideForPlayer(i,Textdraw1[i]); new file[256]; format(file,sizeof(file),"/Vartotojai/%s.ini", PlayerName(i)); PlayerData[i][Lygis] = dini_Int(file, "Lygis"); PlayerData[i][exp] = dini_Int(file, "exp"); PlayerData[i][VIP] = dini_Int(file, "VIP"); PlayerData[i][AdminLevel] = dini_Int(file, "AdminLevel"); PlayerData[i][Nuzudymai] = dini_Int(file, "Nuzudymai"); PlayerData[i][Mirtys] = dini_Int(file, "Mirtys"); } for(new i = 0; i < sizeof(ParkourCheckpoints); i++) { DestroyPickup(ParkourPickups[i]); } for(new i = 0; i < 30; i++) { DestroyObject(ParkourObjects[i]); } DestroyVehicle(bmx1); DestroyVehicle(bmx2); DestroyVehicle(bmx3); DestroyVehicle(bmx4); return 1; }