[INNE] Serwer się wyłącza
Autor
Wiadomość
Informacje
Nick w MP: STIVEN
Na forum: 483 dni Posty: 56Respekt: 45,3
Wysłany: 2012-02-21, 12:39 [INNE] Serwer się wyłącza
Cześć mam problem po wejściu na serwer on się wyłącza gdy wyjdę z serwera on się sam włącza! Teraz zapodam logi!
Kod:----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3d-R2, (C)2005-2011 SA-MP Team
[12:31]
[12:31] Server Plugins
[12:31] --------------
[12:31] Loading plugin: streamer.so
[12:31]
*** Streamer Plugin v2.5.2 by Incognito loaded ***
[12:31] Loaded.
[12:31] Loaded 1 plugins.
[12:31]
[12:31] Filterscripts
[12:31] ---------------
[12:31] Loading filterscript 'streamer.amx'...
[12:31] Loading filterscript 'Kierunkowskazy.amx'...
[12:31] Loading filterscript 'gl_actions.amx'...
[12:31] Loading filterscript 'gl_property.amx'...
[12:31]
-----------------------------------
[12:31] Grand Larceny Property Filterscript
[12:31] -----------------------------------
[12:31] Loading filterscript 'gl_realtime.amx'...
[12:31] Loaded 5 filterscripts.
[12:31] Reading File: blank
[12:31] Reading File: properties/houses.txt
[12:31] Reading File: properties/businesses.txt
[12:31] Reading File: properties/banks.txt
[12:31] Reading File: properties/police.txt
[12:31]
----------------------------------
[12:31] °Truck Serwer° Loaded..............
[12:31] ----------------------------------
[12:31] Number of vehicle models: 28
Za pomoc +10 i Piwko!
Informacje
Na forum: 1292 dni Posty: 1873Piwa : 2616 Respekt: 217,6 Głosy : 23
Wysłany: 2012-02-21, 13:30
Może jest jakieś zabezpieczenie że przy wychodzeniu z serwa ma się on wyłączać? w OnPlayerDisconnect sprawdź czy nie ma czegoś związanego z SendRconCommand(exit);
czy coś w tym stylu
_________________
Informacje
Nick w MP: STIVEN
Na forum: 483 dni Posty: 56Respekt: 45,3
Wysłany: 2012-02-21, 13:33
Mattwell , nic nie widzę!
Kod:public OnPlayerDisconnect(playerid, reason)
{
FormatFilesString(playerid);
SetPlayerSkin(playerid, dini_Int(strfiles, "Skin"));
new strmsg[64];
switch(reason)
{
case 0: format(strmsg, 64, "# Gracz %s (ID: %d) opuścił serwer (Crash).", PlayerName(playerid), playerid);
case 1:
{
SaveData(playerid);
format(strmsg, 64, "# Gracz %s (ID: %d) opuścił serwer (Wyszedł).", PlayerName(playerid), playerid);
}
case 2: format(strmsg, 64, "# Gracz %s (ID: %d) opuścił serwer (Kick/Ban).", PlayerName(playerid), playerid);
}
DestroyDynamic3DTextLabel(PlayerInfo[playerid][pPlayer3DText]);
KillTimer(PlayerInfo[playerid][UseLoadTimer]);
SendClientMessageToAll(COLOR_GREY, strmsg);
TextDrawHideForPlayer(playerid, PhotoradarTD[playerid]);
KillTimer(PlayerInfo[playerid][pPhotoradarTimer]);
DestroyVehicle(PlayerInfo[playerid][pCar]);
return 1;
}
Informacje
Na forum: 1292 dni Posty: 1873Piwa : 2616 Respekt: 217,6 Głosy : 23
Wysłany: 2012-02-21, 13:42
Kod:public OnPlayerDisconnect(playerid, reason)
{
FormatFilesString(playerid);
SetPlayerSkin(playerid, dini_Int(strfiles, "Skin"));
new strmsg[64];
switch(reason)
{
case 0:
{
format(strmsg, 64, "# Gracz %s (ID: %d) opuścił serwer (Crash).", PlayerName(playerid), playerid);
}
case 1:
{
SaveData(playerid);
format(strmsg, 64, "# Gracz %s (ID: %d) opuścił serwer (Wyszedł).", PlayerName(playerid), playerid);
SendClientMessageToAll(COLOR_GREY, strmsg);
}
case 2:
{
format(strmsg, 64, "# Gracz %s (ID: %d) opuścił serwer (Kick/Ban).", PlayerName(playerid), playerid);
}
SendClientMessageToAll(COLOR_GREY, strmsg);
}
DestroyDynamic3DTextLabel(PlayerInfo[playerid][pPlayer3DText]);
KillTimer(PlayerInfo[playerid][UseLoadTimer]);
TextDrawHideForPlayer(playerid, PhotoradarTD[playerid]);
KillTimer(PlayerInfo[playerid][pPhotoradarTimer]);
DestroyVehicle(PlayerInfo[playerid][pCar]);
return 1;
}
spróbuj tak, chyba że nie masz plików do rejestracji, ale wtedy by się przy połączeniu wyłączał
_________________
Informacje
Nick w MP: STIVEN
Na forum: 483 dni Posty: 56Respekt: 45,3
Wysłany: 2012-02-21, 13:49
Mattwell , Już spróbuje, ale właśnie przy łączeniu się wyłącza wpisuje hasło i się wyłącza..
[ Dodano : 2012-02-21, 13:50 ]
Ps: errory -,-
Kod:C:\Users\Patryk\Desktop\Serwer\Trucking.pwn(1041) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Patryk\Desktop\Serwer\Trucking.pwn(1041) : warning 215: expression has no effect
C:\Users\Patryk\Desktop\Serwer\Trucking.pwn(1044) : error 021: symbol already defined: "DestroyDynamic3DTextLabel"
C:\Users\Patryk\Desktop\Serwer\Trucking.pwn(1049) : error 010: invalid function or declaration
C:\Users\Patryk\Desktop\Serwer\Trucking.pwn(4545) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Informacje
Na forum: 1292 dni Posty: 1873Piwa : 2616 Respekt: 217,6 Głosy : 23
Wysłany: 2012-02-21, 13:52
PRT2011 , użyj tego swojego kodu, tego mojego wgl nie bierz
Z tego wynika, że nie masz wszystkich folderów w scriptfiles i dlatego się serwer wyłącza
_________________
Informacje
Nick w MP: STIVEN
Na forum: 483 dni Posty: 56Respekt: 45,3
Wysłany: 2012-02-21, 13:56
Okey masz 2 piwka, eyy a co mam teraz z tymi folderami zrobić?
[ Dodano : 2012-02-21, 14:00 ]
PS: mam dwa foldery Vehicles i Properties..
Informacje
Na forum: 1292 dni Posty: 1873Piwa : 2616 Respekt: 217,6 Głosy : 23
Wysłany: 2012-02-21, 14:12
No powinieneś mieć foldery związane z rejestracją czy coś, nie wiem jak nazwane.
_________________
Informacje
Nick w MP: STIVEN
Na forum: 483 dni Posty: 56Respekt: 45,3
Wysłany: 2012-02-21, 14:19
Mattwell , Mogę z innej paczki serwera?
Informacje
Na forum: 1292 dni Posty: 1873Piwa : 2616 Respekt: 217,6 Głosy : 23
Wysłany: 2012-02-21, 14:30
Nie, bo te foldery w scriptfiles muszą być przystosowane do mapy, z której korzystasz.
_________________
Informacje
Nick w MP: STIVEN
Na forum: 483 dni Posty: 56Respekt: 45,3
Wysłany: 2012-02-21, 14:44
Mattwell , To co mam teraz zrbić?
[ Dodano : 2012-02-21, 14:50 ]
ps: Teraz kumpel wbił i się okazało że po wpisaniu hasła się wyłącza..
Informacje
Na forum: 1292 dni Posty: 1873Piwa : 2616 Respekt: 217,6 Głosy : 23
Wysłany: 2012-02-21, 15:00
PRT2011 , podaj trochę kodu z OnPlayerConnect, związanego z rejestracją/logowaniem
_________________
Informacje
Nick w MP: STIVEN
Na forum: 483 dni Posty: 56Respekt: 45,3
Wysłany: 2012-02-21, 15:07
Mattwell , łap
Kod:public OnPlayerConnect(playerid)
{
new strmsg[64];
format(strmsg, 64, "# Gracz %s (ID: %d) dołączył do gry.", PlayerName(playerid), playerid);
SendClientMessageToAll(COLOR_GREY, strmsg);
SetPVarInt(playerid, "Team", 0);
SetPVarInt(playerid, "Logged", 1);
SetPVarInt(playerid, "CanalCB", 19);
SetPVarInt(playerid, "UseLoad", 0);
TextDrawHideForPlayer(playerid, Speedometer[playerid]);
TogglePlayerSpectating(playerid,1);
FormatFilesString(playerid);
if(FileExists(strfiles))
{
ShowPlayerDialog(playerid, LOGIN_DIALOG, DIALOG_STYLE_INPUT, "Truck Serwer 2012 - Logowanie", "Witamy na Truck Serwer 2012.\nWpisz poniżej hasło do konta.", "Zaloguj", "Anuluj");
}
else
{
ShowPlayerDialog(playerid, REGISTER_DIALOG, DIALOG_STYLE_INPUT, "Truck Serwer 2012 - Rejestracja", "Witamy na Truck Serwer 2012.\nAby się zarejestrować, wpisz poniżej hasło do konta.", "Zarejestruj", "Anuluj");
}
TogglePlayerAllDynamicCPs(playerid, true);
PlayerInfo[playerid][pCar] = 0;
return 1;
}
Informacje
Na forum: 1292 dni Posty: 1873Piwa : 2616 Respekt: 217,6 Głosy : 23
Wysłany: 2012-02-21, 15:11
pokaż to: FormatFilesString(playerid);
_________________
Informacje
Nick w MP: STIVEN
Na forum: 483 dni Posty: 56Respekt: 45,3
Wysłany: 2012-02-21, 15:19
Mattwell , To jest to?
Kod:/*
if(dialogid == LOGIN_DIALOG)
{
if(!response) return KickPlayer(playerid, 666, "Brak zalogowania.");
FormatFilesString(playerid);
new File: UserFile = fopen(strfiles, io_read);
new PasswordFile;
if(UserFile)
{
new key[256] , val[256];
new Data[256];
while (fread(UserFile, Data, sizeof(Data)))
{
key = ini_GetKey(Data);
if(strcmpEx(key, "Password", true )==0) { val = ini_GetValue(Data); PasswordFile = strval(val); }
if(strcmpEx(key, "Moneys", true )==0) { val = ini_GetValue(Data); SetPlayerMoneyEx(playerid, strval(val)); }
if(strcmpEx(key, "Score", true )==0) { val = ini_GetValue(Data); SetPlayerScore(playerid, strval(val)); }
if(strcmpEx(key, "InJail", true )==0) { val = ini_GetValue(Data); SetPVarInt(playerid, "InJail", strval(val)); }
if(strcmpEx(key, "JailTime", true )==0) { val = ini_GetValue(Data); SetPVarInt(playerid, "JailTime", strval(val)); }
if(strcmpEx(key, "Team", true )==0) { val = ini_GetValue(Data); SetPVarInt(playerid, "Team", strval(val)); }
new HashedPassword = udb_hash(inputtext);
if((HashedPassword == PasswordFile) || (PasswordFile == 0))
{
PlayerInfo[playerid][pPassword] = HashedPassword;
}
else
{
ShowPlayerDialog(playerid, LOGIN_DIALOG, DIALOG_STYLE_INPUT, "Logowanie", "Podane hasło jest nieprawidłowe.\nPodaj prawidłowe hasło poniżej.", "Zaloguj", "Anuluj");
}
}
new strings[128];
format(strings, sizeof(strings), "Witaj, %s. Miłej gry!", PlayerName(playerid));
SendClientMessage(playerid, COLOR_RED, strings);
SetPVarInt(playerid, "Logged", 1);
TogglePlayerSpectating(playerid,0);
SetPlayerColor(playerid, COLOR_GREEN);
new PlayerString[56];
format(PlayerString, 56, "%s (%d)", PlayerName(playerid), playerid);
if(GetPVarInt(playerid, "Team") != 0)
{
switch(GetPVarInt(playerid, "Team"))
{
case 1:
{
SetPlayerColor(playerid, 0xFFFFFF00);
SetSpawnInfo(playerid, -1, GetPlayerSkin(playerid), -1618.314819, 681.577331, 7.187500, 0, 0, 0, 0, 0, 0, 0);
SendClientMessage(playerid, COLOR_GREEN, "Aby się przebrać udaj się na komisariat i po wejściu skręć w lewo, będzie tam odpowiedni napis.");
PlayerInfo[playerid][pPlayer3DText] = CreateDynamic3DTextLabel(PlayerString, 0xFFFFFFFF, 0.0, 0.0, 0.0, 25.0, playerid);
}
case 2:
{
SetPlayerColor(playerid, COLOR_LIGHTBLUE);
SetSpawnInfo(playerid, -1, GetPlayerSkin(playerid), 1338.050048, 730.141052, 10.812507, 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
PlayerInfo[playerid][pPlayer3DText] = CreateDynamic3DTextLabel(PlayerString, GetPlayerColor(playerid), 0.0, 0.0, 0.0, 25.0, playerid);
}
case 3:
{
SetPlayerColor(playerid, COLOR_YELLOW);
SetSpawnInfo(playerid, -1, GetPlayerSkin(playerid), 1045.7895507813, -354.08380126953, 74.214004516602, 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
PlayerInfo[playerid][pPlayer3DText] = CreateDynamic3DTextLabel(PlayerString, GetPlayerColor(playerid), 0.0, 0.0, 0.0, 25.0, playerid);
}
case 4:
{
SetPlayerColor(playerid, COLOR_GREY);
SetSpawnInfo(playerid, -1, GetPlayerSkin(playerid), 849.84448242188, 2192.4665527344, 10.7228307724, 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
PlayerInfo[playerid][pPlayer3DText] = CreateDynamic3DTextLabel(PlayerString, GetPlayerColor(playerid), 0.0, 0.0, 0.0, 25.0, playerid);
}
}
}
else
{
SetSpawnInfo(playerid, -1, GetPlayerSkin(playerid), -1708.2343,284.0074,7.1875,328.2540, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
SetPlayerColor(playerid, COLOR_BOLDGREEN);
PlayerInfo[playerid][pPlayer3DText] = CreateDynamic3DTextLabel(PlayerString, GetPlayerColor(playerid), 0.0, 0.0, 0.0, 25.0, playerid);
}
fclose(UserFile);
}
return 1;
}
*/
stock strrest(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[128];
while ((index < length) && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
Tagi: serwer :: się :: wyłącza
Anonymous
Dołaczył: Wczoraj 0:00
Posty: 1
Skad: google.com
Anonymous Koniecznie zajrzyj na:
Nie możesz pisać nowych tematówNie możesz odpowiadać w tematachNie możesz zmieniać swoich postówNie możesz usuwać swoich postówNie możesz głosować w ankietach
Wersja do druku
Dubbing w grach, wywiady, recenzje - DUBSCORE.pl