GTAOnline.net
San Andreas Multiplayer (sa:mp) => Problèmes et bugs => Discussion démarrée par: darkdudess le 24 Avril 2011, 10:21:07
-
Bonjours / Bonsoirs !
Voila j'utilise le Game Mode de YourLife téléchargeable sur le forum de sa-mp mais le problème c'est que tous les matins a 9h ou 9h30 le serveur s’éteint ou bien essaye de rebooter et sa ne marche pas et je ne trouve pas d'ou cela peut venir merci de m'aider.
-
Salut, essaye de rechercher dans ton script (Ctrl+F) ces fonctions : gettime et SendRconCommand("gmx");
Si tu trouves les 2 côte à côte, c'est ça qui fait reboot ton serveur.
Sinon, je n'ai pas trop d'idées ;D
-
j'ai sa : public ChangeHostname()
{
new var = random(3);
switch (var)
{
case 0: SendRconCommand("hostname [FR][RP]~•Poka Street~|~RP•~[LS][V2.7]");
case 1: SendRconCommand("hostname Recuperation de comptes !");
case 2: SendRconCommand("hostname http://pokarp.net (http://pokarp.net)");
}
}
-
rien a voir cherche ceci SendRconCommand("gmx"); ou ceci SendRconCommand("exit");
si tu n'as pas cela dans ton GM ni dans tes FS c'est que c'est le dedier qui reboot donc tu devras faire une commande pour lancer le server samp au demarrage
-
Sa fait deux dédié que je test et la même chose ...
Sinon j'ai sa :
if(ServerHour == 22){SetWorldTime(22);} //Can't be different. I don't know why, but otherwise you get a atomic bomb weather.
-
rien a voir nn plus as tu l'extrait du log au moment ou il se coupe STP
-
Bien sur!
[04:05:11] [SPEC-IP] Phabs_Alves(0) détient l'ip : 93.8.8.37
[04:07:54] [ADMIN] Phabs_Alves a respawn le vehicule id 43.
[04:10:55] [part] Phabs_Alves has left the server (0:1)
[05:00:01] La meteo a été changer. [05:00:01]
[06:00:01] La meteo a été changer. [06:00:01]
[07:00:01] La meteo a été changer. [07:00:01]
[07:52:30] Incoming connection: 217.136.14.134:61373
[07:52:30] [join] Diego_Scortex has joined the server (0:217.136.14.134)
[07:52:40] Diego_Scortex viens de se connecter.
[07:52:43] [Poka Street] Diego_Scortex(0) viens d'entré en ville ! ( Belgium
)
[07:52:48] [chat] [Diego_Scortex]: homme
[07:52:58] [chat] [Diego_Scortex]: 19/05/1993
[07:53:04] [chat] [Diego_Scortex]: france
[08:00:01] La meteo a été changer. [08:00:01]
[08:10:07] [part] Diego_Scortex has left the server (0:1)
[09:00:01] La meteo a été changer. [09:00:01]
-
est c'est tout ??? il y a rien apres 09:00:01 sa ressemble plus a un crash qu'autre chose
sa doit etre une ligne comme ceci que tu as
if(ServerHour == 9){SetWorldTime(9);}
ou
if(ServerHour == 9){SetWorldTime(09);}
-
et je la supprime cette ligne ?
Double post
j'ai que if(ServerHour == 22){SetWorldTime(22);}
else{SetWorldTime(ServerHour);}
j'ai pas avec 9
-
tente de desactiver ce changement d'heure et voit si sa continue de bugger
-
Je supprime tout sa ?
//Meteo Changer
if(ServerMinute == 0 && ServerSecond == 0) //When a new hour starts. The one second is to prevent a bug.
{
new string[256];
format(string, sizeof(string), "Information de Los Santos : il est maintenant, %02dh.",ServerHour);
SendClientMessageToAll(COLOR_WHITE, string);
printf("La meteo a été changer. [%02d:%02d:%02d]",ServerHour, ServerMinute, ServerSecond);
PayDay();
switch(Month)
{
case 1:{
TextDrawSetString(TextdrawMonth, " Janvier");
SetWeather(WinterWeather[winterrand]);
}
case 2:{
TextDrawSetString(TextdrawMonth, " Fevrier");
SetWeather(WinterWeather[winterrand]);
}
case 3:{
TextDrawSetString(TextdrawMonth, " Mars");
if(Day <21){SetWeather(WinterWeather[winterrand]);}
else{SetWeather(SpringWeather[springrand]);}
}
case 4:{
TextDrawSetString(TextdrawMonth, " Avril");
SetWeather(SpringWeather[springrand]);
}
case 5:{
TextDrawSetString(TextdrawMonth, " Mai");
SetWeather(SpringWeather[springrand]);
}
case 6:{
TextDrawSetString(TextdrawMonth, " Juin");
if(Day <21){SetWeather(SpringWeather[springrand]);}
else{SetWeather(SummerWeather[summerrand]);}
}
case 7:{
TextDrawSetString(TextdrawMonth, " Juiller");
SetWeather(SummerWeather[summerrand]);
}
case 8:{
TextDrawSetString(TextdrawMonth, " Aout");
SetWeather(SummerWeather[summerrand]);
}
case 9:{
TextDrawSetString(TextdrawMonth, " Septembre");
if(Day <21){SetWeather(SummerWeather[summerrand]);}
else{SetWeather(AutumnWeather[autumnrand]);}
}
case 10:{
TextDrawSetString(TextdrawMonth, " Octobre");
SetWeather(AutumnWeather[autumnrand]);
}
case 11:{
TextDrawSetString(TextdrawMonth, " Novembre");
SetWeather(AutumnWeather[autumnrand]);
}
case 12:{
TextDrawSetString(TextdrawMonth, " Decembre");
if(Day <21){SetWeather(AutumnWeather[autumnrand]);}
else{SetWeather(WinterWeather[winterrand]);}
}
}
if(ServerHour == 22){SetWorldTime(22);}
else{SetWorldTime(ServerHour);}
}
return 1;
}
Double post
alors ? ^^
Double post
désolé des triples poste mais re up