[Ajuda] Da Um Helpe Aqui Glr !
#1

BOm ME ajudem a Tirar esse Bug (si e q podemos chamar assim) da minha GM PF
ela n da erro nem nada so q quando eu abro o server
o Samp-Server dela fecha sozinho me ajudem !

OBS : Uso a GM Dten RPG !


Crash Detect:
[21:08:41] [debug] Server crashed while executing Dten03x.amx
[21:08:41] [debug] AMX backtrace:
[21:08:41] [debug] #0 native fwrite () [004056e0] from samp-server.exe
[21:08:41] [debug] #1 0000ad1c in ?? (0x000be37c, 0x0037eda8, 0x00396c64) from Dten03x.amx
[21:08:41] [debug] #2 0000af8c in ?? (0x000be37c, 0x0037eda8, 0x00000000) from Dten03x.amx
[21:08:41] [debug] #3 0010523c in public CronServe () from Dten03x.amx
[21:08:41] [debug] Native backtrace:
[21:08:41] [debug] #0 776677a2 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[21:08:41] [debug] #1 00493990 in ?? () from samp-server.exe
[21:08:41] [debug] #2 0040531e in ?? () from samp-server.exe


Server.cfg

echo Executing Server Config...
lanmode 0
rcon_password skype
maxplayers 50
port 7777
hostname Brasil Word Hard [RPG]
gamemode0 Dten03x
filterscripts
plugins crashdetect sscanf streamer MapAndreas Whirlpool
announce 1
query 1
weburl dtenhost.com.br
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 5
logtimeformat [%H:%M:%S]

Help Me ( : Confuso:
Reply
#2

Cara, saindo um pouco do assunto do tуpico. Brasil Word Hard = Brasil Palavra Difнcil
Reply
#3

Tenta baixar novamente o samp-server pra ver.

Quote:
Originally Posted by DogeMan
Brasil Word Hard = Brasil Palavra Difнcil
auhshuashuuha. Pode ver que ele ia botar World, mas esqueceu do "l"
Reply
#4

ja troquei mas da a msm coisa.
Help Me!
Reply
#5

Muito GameMode dб erro nessa CronServe .. Sу observo isso..

Posta ela aн.
Reply
#6

Ta ai
Quote:

public CronServe()
{
new string[256];

minu++;
if(horas == 0)
{
SetWorldTime(0);
Faculdade2 = 0;
}
if(minu >= 59)
{
minu = 0;
horas++;
SetWorldTime(horas);
}
if(horas > 23)
{
horas = 0;
}
if(Relogio != Text:INVALID_TEXT_DRAW)
{
format(string, 25, "~w~%02d~g~:~w~%02d", horas, minu);
TextDrawSetString(Relogio, string);
}

if(horas == 9 && minu == 00)
{
Faculdade2 = 1;
MoveDynamicObject(ObjectsFix[21], 1214.0789794922, -1842.5186767578, 20.415674209595, 4.0);
MoveDynamicObject(ObjectsFix[22], 1269.8895263672, -1842.5379638672, 20.511180877686, 4.0);
GameTextForAll("~w~Faculdade ~p~Aberta!", 6000, 1);
}
if(horas == 12 && minu == 00)
{
Faculdade2 = 0;
MoveDynamicObject(ObjectsFix[21], 1213.7843017578, -1842.4782714844, 15.156204223633, 4.0);
MoveDynamicObject(ObjectsFix[22], 1270.2001953125, -1842.5798339844, 15.156204223633, 4.0);
GameTextForAll("~w~Faculdade ~p~Fechada!", 6000, 1);
}
if(horas == 14 && minu == 00)
{
Faculdade2 = 1;
MoveDynamicObject(ObjectsFix[21], 1214.0789794922, -1842.5186767578, 20.415674209595, 4.0);
MoveDynamicObject(ObjectsFix[22], 1269.8895263672, -1842.5379638672, 20.511180877686, 4.0);
GameTextForAll("~w~Faculdade ~p~Aberta!", 6000, 1);
}
if(horas == 17 && minu == 00)
{
Faculdade2 = 0;
MoveDynamicObject(ObjectsFix[21], 1213.7843017578, -1842.4782714844, 15.156204223633, 4.0);
MoveDynamicObject(ObjectsFix[22], 1270.2001953125, -1842.5798339844, 15.156204223633, 4.0);
GameTextForAll("~w~Faculdade ~p~Fechada!", 6000, 1);
}
if(horas == 21 && minu == 00)
{
Faculdade2 = 1;
MoveDynamicObject(ObjectsFix[21], 1214.0789794922, -1842.5186767578, 20.415674209595, 4.0);
MoveDynamicObject(ObjectsFix[22], 1269.8895263672, -1842.5379638672, 20.511180877686, 4.0);
GameTextForAll("~w~Faculdade ~p~Aberta!", 6000, 1);
}
if(horas == 24 && minu == 30)
{
Faculdade2 = 0;
MoveDynamicObject(ObjectsFix[21], 1213.7843017578, -1842.4782714844, 15.156204223633, 4.0);
MoveDynamicObject(ObjectsFix[22], 1270.2001953125, -1842.5798339844, 15.156204223633, 4.0);
GameTextForAll("~w~Faculdade ~p~Fechada!", 6000, 1);
}
if(horas == 15 && minu == 00)
{
print("Salário pago ao(s) empregado(s) online!");
Up();
}

totalon = 0;

for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(!IsPlayerNPC(i))
{
if(totalon == 0)
{
totalon = 1;
}
else if(totalon > 0)
{
totalon++;
}
}
if(GetPlayerMoney(i) != GetPlayerGrana(i))
{
ResetPlayerMoney(i);
GivePlayerMoney(i, GetPlayerGrana(i));
}

GetPlayerPos(i, PlayerCurrentPos[0], PlayerCurrentPos[1], PlayerCurrentPos[2]);

if(!floatcmp(PlayerCurrentPos[0], PlayerLastPos[i][LastX]) && !floatcmp(PlayerCurrentPos[1], PlayerLastPos[i][LastY]))
{
PlayerAfkTicks[i]++;
}
else
{
PlayerAfkTicks[i] = 0;
}
PlayerLastPos[i][LastX] = PlayerCurrentPos[0];
PlayerLastPos[i][LastY] = PlayerCurrentPos[1];
PlayerLastPos[i][LastZ] = PlayerCurrentPos[2];

if(PlayerAfkTicks[i] == MAX_IDLE_TIME*60 && PlayerInfo[i][Logged] == 1)
{
AFK[i] = 1;
SetPlayerVirtualWorld(i, 1);
SetCameraBehindPlayer(i);
TogglePlayerControllable(i, 0);
TextDrawShowForPlayer(i, AfkText);
TextDrawShowForPlayer(i, AfkBackText);
format(string, sizeof(string), "%s está ausente e foi impedido(a) de upar!", GetPlayerNameEx(i));
SendClientMessageToAll(0xFF9595AA, string);
}

format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(i));
if(dini_Exists(file))
{
new Float:health;

GetPlayerHealth(i, health);

dini_IntSet(file, "Matou", matou[i]);
dini_IntSet(file, "Morreu", morreu[i]);

if(dini_Int(file, "usoudroga") == 1)
{
SetPlayerHealth(i, health-2);
}
if(dini_Int(file, "Level") > MAX_PLAYER_LEVEL-1)
{
dini_IntSet(file, "Level", MAX_PLAYER_LEVEL);
}
if(dini_Int(file, "Faculdade") > MAX_PLAYER_ESTUDO-1)
{
dini_IntSet(file, "Faculdade", MAX_PLAYER_ESTUDO);
}
if(pAdmin[i] > 0)
{
dini_IntSet(file, "Admin", pAdmin[i]);
}
}
}
}
return 1;
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)