Jump to content
  • 0

Question

Posted

Am o noua problema cu salvarea accounturilor!Folosesc SII(chiar daca este copiat dupa YSI:INI,e muult mai rapid).!Cand ma inregistrez introduc parola,dar,cand ma uit in fisierul creat Users/%s.ini nu este nimic!Apare doar un fisier re.ini in scriptfiles, nu in folderul de mai sus :|.Codul problematic(probabil):

stock getINI(playerid)
{
  new account[64];
  GetPlayerName(playerid,"pName",sizeof(pName));
  format(account,30,"Users/%s.ini",pName);
  return account;
}

Daca vreti intreg scriptul,datimi PM.Nu este protejat importiva n00bilor si de asta il dau doar prin PM

5 answers to this question

Recommended Posts

Posted

Nu prea cred eu ca asta e codul problematic,Nu sunt expert in Y_INI(vad ca se aseamana un pic)

Arata codul de la register

Massari e curva mea

Posted

Try asa :

stock getINI(playerid)

{

  new account[ 64 ],

        pName[ 24 ];

  GetPlayerName( playerid , pName , 24 ) ;

  format( account , 64 , "Users/%s.ini" , pName );

  return account;

}

Observatie : Tu la account string era 64 iar tu de ce ai pus la format 30 ? :S

La register ai ? INI_Save();

                INI_Close();

idiots.png
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.