Wysłany: 2012-02-21, 12:39
PRT2011
Wiek: 40 Na forum: 5608 dni Posty: 18
Nick w MP: STIVEN
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!
Wysłany: 2012-02-21, 13:30
MG303
Wiek: 30 Na forum: 6418 dni Posty: 654
Piwa : 2990
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
Wysłany: 2012-02-21, 13:33
PRT2011
Wiek: 40 Na forum: 5608 dni Posty: 18
Nick w MP: STIVEN
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;
}
Wysłany: 2012-02-21, 13:42
MG303
Wiek: 30 Na forum: 6418 dni Posty: 654
Piwa : 2990
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?
Wysłany: 2012-02-21, 13:49
PRT2011
Wiek: 40 Na forum: 5608 dni Posty: 18
Nick w MP: STIVEN
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.
Wysłany: 2012-02-21, 13:52
MG303
Wiek: 30 Na forum: 6418 dni Posty: 654
Piwa : 2990
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
Wysłany: 2012-02-21, 13:56
PRT2011
Wiek: 40 Na forum: 5608 dni Posty: 18
Nick w MP: STIVEN
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..
Wysłany: 2012-02-21, 14:12
MG303
Wiek: 30 Na forum: 6418 dni Posty: 654
Piwa : 2990
No powiniene? mie? foldery zwi?zane z rejestracj? czy co?, nie wiem jak nazwane.
Wysłany: 2012-02-21, 14:19
PRT2011
Wiek: 40 Na forum: 5608 dni Posty: 18
Nick w MP: STIVEN
Mattwell , Mog? z innej paczki serwera?
Wysłany: 2012-02-21, 14:30
MG303
Wiek: 30 Na forum: 6418 dni Posty: 654
Piwa : 2990
Nie, bo te foldery w scriptfiles musz? by? przystosowane do mapy, z kt?rej korzystasz.
Wysłany: 2012-02-21, 14:44
PRT2011
Wiek: 40 Na forum: 5608 dni Posty: 18
Nick w MP: STIVEN
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..
Wysłany: 2012-02-21, 15:00
MG303
Wiek: 30 Na forum: 6418 dni Posty: 654
Piwa : 2990
PRT2011 , podaj troch? kodu z OnPlayerConnect, zwi?zanego z rejestracj?/logowaniem
Wysłany: 2012-02-21, 15:07
PRT2011
Wiek: 40 Na forum: 5608 dni Posty: 18
Nick w MP: STIVEN
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;
}
Wysłany: 2012-02-21, 15:11
MG303
Wiek: 30 Na forum: 6418 dni Posty: 654
Piwa : 2990
poka? to: FormatFilesString(playerid);
Wysłany: 2012-02-21, 15:19
PRT2011
Wiek: 40 Na forum: 5608 dni Posty: 18
Nick w MP: STIVEN
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
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: