Salut,
J'ai un énorme problème : j'ai créer une commande de connexion très simple, normalement sans histoire, compiler... Puis j'essaye de me connecter : le serveur reboot :bangin. Je comprend pas ce qui fait que la commande reboot le serveur... Voici la commande en question :
dcmd_connexion(playerid, params[])
{
if(!params[0]) return SendClientMessage(playerid, COLORRED, "Usage : /Connexion [Mot De Passe]");
if(pInfo[playerid][pLogger] == 1) return SendClientMessage(playerid, COLORRED, "Erreur : Vous êtes déjà connecté !");
new pN[MAX_PLAYERS],Format[128];
GetPlayerName(playerid,pN,sizeof pN);
format(Format,sizeof(Format),"Users/%s.cfg",pN);
if(!fexist(Format)) return SendClientMessage(playerid, COLORRED, "Erreur : Vous n'êtes pas inscris !");
if(strcmp(params,dini_Get(Format, "Security")) == 0){
pInfo[playerid][pAdmin] = dini_Int(Format, "Admin");
pInfo[playerid][pHeure] = dini_Int(Format, "Heures");
pInfo[playerid][pMinute] = dini_Int(Format, "Minutes");
pInfo[playerid][pOption] = dini_Int(Format, "pOption");
GivePlayerMoney(playerid,dini_Int(Format,"Argent"));
SetPlayerScore(playerid,dini_Int(Format, "Score"));
pInfo[playerid][pLogger] = 1;
TPS = SetTimerEx("Temps", 60000, true, "is", playerid);
SendClientMessage(playerid, COLORGREEN, "Vous avez été logger avec succé !");
}else{ SendClientMessage(playerid, COLORRED, "Mot de passe incorrect...");
}
return 1;
}
Merci d'avance pour vos réponses !