Jump to content
  • 0

Problema salvare conturi


burnfire

Question

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

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

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
Link to comment
Share on other sites

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.