Jump to content
  • 0

Problema autentificare


ARTFollow.

Question

Problema intalnita (descriere): Cand intru pe sv de samp , ma pune sa ma inregistrez. Scriu parola si ma pune iar sa ma iregistrez iar si  iar si iar .
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu):

public OnPlayerRequestClass(playerid, classid){
HideRXTT(playerid);
new string[128];
// PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
PlayerData[playerid][pModel] = Peds[classid][0];
if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
{
if (gPlayerAccount[playerid] != 0)
{
new loginstring[256];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"Bine ai venit, %snAcest nick este inregistrat, pentru a te juca pe acest server trebuie sa fi logat.nUltimul login:%snIntrodu parola:",loginname,PlayerData[playerid][pUltLog]);
ShowPlayerDialog(playerid,12346,DIALOG_STYLE_PASSWORD,"{1E90FF}L{FFFFFF}ogheaza-te",loginstring,"Login","Exit");
}
else
{
gPlayerAccount[playerid] = 0;
  new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Bine ai venit, %snNu ai cont.nTe rog inregistreaza-te!nIntrodu parola:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"{1E90FF}I{FFFFFF}nregistreaza-te",regstring,"Register","Exit");
}
PlayerData[playerid][pModel] = Peds[classid][0];
PlayerData[playerid][pChar] = Peds[classid][0];
SetPlayerTeamFromClass(playerid,classid);
}
format(string, sizeof(string), "~b~ <> ~p~Civil ~b~<>");
GameTextForPlayer(playerid,string,3500,6);


SetPlayerTeamFromClass(playerid,classid);
SetupPlayerForClassSelection(playerid);
return 1;
}
public SetupPlayerForClassSelection(playerid)
{
   SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-1657.5237,1207.6644,13.6719);
SetPlayerFacingAngle(playerid,357.6906);
   SetPlayerCameraPos(playerid, -1657.4678,1211.2292,13.6781);
   SetPlayerCameraLookAt(playerid,-1657.5237,1207.6644,13.6719);

Imagini / Video (optional): - 
Ati incercat sa rezolvati singur?:Da )X

Edited by ARTFollow.
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Daca gamemode-ul ruleaza pe mysql trebuie sa schimbi linia la (players , player accounts , conturi .. ) cum ai tu trebuie sa o refaci e usor daca vrei o pot face eu .. Zimi cum ai in mysql si iti fac eu una buna adica ti-o dau pe a mea .. doar sa imi zici cum se numeste la tine ..

Link to comment
Share on other sites

  • 0
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.