Jump to content
  • 0

problema extragere date din baza de date


moof2010

Question

Deci aseara mi-am creat un sistem de register/login personal.

La logare dupa ce identific userul si daca scrie parola corect ii dau bani si il spawnez numai ca am o problema. Nu imi da banii desi ii am in baza de date.

[pawn]if(numrows == 1)//Daca este corecta parola stocam informatii

            {

            new username[24];

            new baniuser[24];

            mysql_fetch_field(1, username);

            mysql_fetch_field(3, baniuser);

            new userbani = strval(baniuser);

            GivePlayerMoney(playerid, userbani);

            SetSpawnInfo(playerid, 0, 0,1017.1094,-1345.6660,13.2545, 269.15, 0, 0, 0, 0, 0, 0);

SpawnPlayer(playerid);

}[/pawn]

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

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.