Jump to content

Question

Posted

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.

6 answers to this question

Recommended Posts

  • 0
Posted

Poi ca sa introduci ceva in baza de date nu trebuia sa folosesti "insert into 'LALALA' where ..." etc ? Nu am completat toata sintaxa pentru ca nu o stiu :) (nu stiu mysql) .

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

 

  • 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.