Jump to content
  • 0

Problema Pin


MrAndrei

Question

Problema intalnita (descriere): Nu se salveaza codul Pin.
Ero(area / rile) / warning-(ul / urile): Am facut un sistem de Pin, insa, dupa ce il introduc, il adaug, dar dupa relog, codul introdus nu se salveaza. 
Liniile de cod / sursa / script-ul(obligatoriu):

 

La OnPlayerLogin:

    new string[256];
               PlayerInfo[playerid][pPin] = cache_get_field_content(0, "Pin", string);
            format(PlayerInfo[playerid][pPin], 5, string);

	new string[256];
   			PlayerInfo[playerid][pPin] = cache_get_field_content(0, "Pin", string);
			format(PlayerInfo[playerid][pPin], 5, string);


Imagini / Video (optional): -
Ati incercat sa rezolvati singur?:  Da, dar nu am reusit. Am incercat si cu verchant(4). La verchant(10), se adauga numere random, 49,50,51 etc etc.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
            mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `Pin`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pPin], PlayerInfo[playerid][pNormalName]);
            mysql_tquery(SQL,var,"","");

 

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.