GTAOnline.net

San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: Alan_Camarta le 17 Juillet 2009, 02:50:13

Titre: [Aide] Petit problème
Posté par: Alan_Camarta le 17 Juillet 2009, 02:50:13
Bonjour/Bonsoir

J'ai un petit problème, quand je m'inscrit sur le Gm que j'ai telecharger je il dise "utiliser /register <password>" je tape /register et mon mot de passe et ça ne m'affiche rien !
Je change de GM je me register aucun problème ! Donc je pense que cela vient du GM VOici les lignes :

{
gPlayerAccount[playerid] = 1;
/*SendClientMessage(playerid, COLOR_YELLOW2, "Immigration: You are a registered citizen of San Andreas.");
SendClientMessage(playerid, COLOR_YELLOW2, "Hint: Use /login <password> to log in to your game account.");*/
//return 1;
}
else
{
gPlayerAccount[playerid] = 0;
//SendClientMessage(playerid,COLOR_YELLOW2,"Immigration: Please supply the necessary immigration documents by typing /register <password>");
//return 1;
}
//MySQLCheckConnection();

// Check if the account exists
/*new sqlaccountstatus = MySQLCheckAccount(plname);
if(sqlaccountstatus != 0)
{
// Check if the account is locked
if (MySQLCheckAccountLocked(sqlaccountstatus) != 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "This account has been locked and cannot be accessed. Please contact an admin.");
Kick(playerid);
return 0;
}
gPlayerAccount[playerid] = 1;
PlayerInfo[playerid][pSQLID] = sqlaccountstatus;
}
Titre: Re : [Aide] Petit problème
Posté par: Lance le 17 Juillet 2009, 03:14:41
Montre plutot la commande /register, sa vien de la "normalement"
Titre: Re : [Aide] Petit problème
Posté par: Azz45 le 17 Juillet 2009, 03:27:39
Tu dois pas te crée un compte via le SQL ?
Titre: Re : [Aide] Petit problème
Posté par: Alan_Camarta le 17 Juillet 2009, 15:03:47
Et ça le fais a tous ceux qui essaye de s'inscrire que faire ?

EDIT : Voici les lignes :

{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /register [password]");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
//Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
return 1;
}
Titre: Re : [Aide] Petit problème
Posté par: Alan_Camarta le 19 Juillet 2009, 18:54:07
UP !!