Jump to content

Login/Register System Mysql r8 (versiunea cache)


andy47

Recommended Posts

MySql Login/Register System

Am creat un system de login register simplu pe mysql r8 pe care am folosit cache.

Multa lume cauta asa ceva asa ca m-am gandit sa-l postez.

Nu am descoperit nici un bug.

Am pus daca playerul nu este logat sa i se stearga contul.

Conturile se salveaza odata la 10 minute.

Baza de date(.sql): [download]http://www.solidfiles.com/d/a9088e354c[/download]

                              [download]https://www.dropbox.com/s/56ennoqmdv35gjq/legend.sql[/download]

                              [download] http://www.4shared.com/document/ofeuac_P/legend.html[/download]

Scriptul(.pwn):[download]http://www.solidfiles.com/d/d87dcdc3cc[/download]

                      [download]https://www.dropbox.com/s/8w0vsthnshag2h7/mere.pwn[/download]

                      [download] http://www.4shared.com/file/JbNDKAXY/mere.html[/download]

MySql Plugin Include(.dll .so .inc): [download]http://www.solidfiles.com/d/cc123799df/[/download]

                                                    [download]http://www.4shared.com/rar/TzTY1Rgh/pluginandinclude.html[/download]

                                                  [download]https://www.dropbox.com/s/win9mqikilzggxh/pluginandinclude.rar[/download]

Link to comment
Share on other sites

Trebuia sa faci un stock nu sa ii ia name mereu ...

E tare faza ca ai bagat sa fie sters contul din db daca nu ii logat

Cand am vazut THREAD_DIALOG_REGISTER am crezut ca folosesti OnQueryFinish .... Stii ca nu se mai foloseste in R8 / Google Code R20 No ?

La

[pawn] format(string, sizeof(string),"INSERT INTO `Users`(Name,Password,Kills,Deaths,Money) VALUES('%s','%s','0','0','0')",GetName(playerid),inputtext);[/pawn]

Mergea si

[pawn] format(string, sizeof(string),"INSERT INTO `Users`VALUES('%s','%s','0','0','0')",GetName(playerid),inputtext);[/pawn]

Sau

[pawn]strcat(string, "INSERT INTO `Users`");

format(string, sizeof(string),"%s VALUES('%s','%s','0','0','0')",GetName(playerid),inputtext);[/pawn]

Faza cu Function:: nu imi place , puteai sa ii zici functie , function , callback , etc .

Aranjarea nu imi place ... e urata ....

3.9 / 5 .

Daca lucrai la aranjare , si faceai si cu Hash la parole luai nota maxima de la mine :D

idiots.png
Link to comment
Share on other sites

Are un bug si nici nu l-am testat ;)

[pawn]P_DATA [ playerid ] [ pDeaths ] ++;

    P_DATA [ killerid ] [ pKills ] ++;[/pawn]

Killurile nu vor urca..sau deathurile..nu mai stiu sigur care:))

In fine....este incorect cum ai facut..Uite cum e corect

[pawn]P_DATA [ playerid ] [ pDeaths ] ++;

if ( killerid != INVALID_PLAYER_ID )

{

P_DATA [ killerid ] [ pKills ] ++;

}[/pawn]

In rest bun FS-ul..

Si da, cum a spus si funky ...

Nu e incorect dar economisesti un pic de timp si spatiu:

In loc de[pawn]format(string, sizeof(string),"INSERT INTO `Users`(Name,Password,Kills,Deaths,Money) VALUES('%s','%s','0','0','0')",GetName(playerid),inputtext);[/pawn]

Poti pune [pawn]format(string, sizeof(string),"INSERT INTO `Users`VALUES('%s','%s','0','0','0')",GetName(playerid),inputtext);[/pawn]

Massari e curva mea

Link to comment
Share on other sites

http://forum.sa-mp.com/showthread.php?t=441165

Cumva tu esti: raddetine?

Ca sa nu incep sa te injur fara motiv...

Sa stiu daca l-ai copiat sau nu

Eu sunt nimeni. Dar prefer sa fiu un nimeni inconjurat de prieteni adevarati, decat un om faimos inconjurat de falsi.

Nu sunt un scripter perfect, nu sunt nici macar pe aproape, insa in in ciuda acestui fapt incerc sa invat sa le fac pe toate.

Link to comment
Share on other sites

'Un rahat xD , nu e nici un R8 e R7 iti dai seama dupa mysql_log si functia folosita cache_get_data , in R8 REVIZIA (20 actuala) nu mai exista cache_get_data si/sau mysql_log( 1/0 ) .

'Prost scriptat, siii un script adevarat nu ar arata asa , scris fara cap.

https://code.google.com/p/sa-mp-mysql-plugin/source/list


F*ck everybody who want and who try to judge me for who I am, b*star*s !

 

 

Link to comment
Share on other sites

  • 2 weeks later...

MySql Login/Register System

Am creat un system de login register simplu pe mysql r8 pe care am folosit cache.

Multa lume cauta asa ceva asa ca m-am gandit sa-l postez.

Nu am descoperit nici un bug.

Am pus daca playerul nu este logat sa i se stearga contul.

Conturile se salveaza odata la 10 minute.

Baza de date(.sql): http://www.solidfiles.com/d/a9088e354c/

                              https://www.dropbox.com/s/56ennoqmdv35gjq/legend.sql

                              http://www.4shared.com/document/ofeuac_P/legend.html

Scriptul(.pwn):http://www.solidfiles.com/d/d87dcdc3cc/

                      https://www.dropbox.com/s/8w0vsthnshag2h7/mere.pwn

                      http://www.4shared.com/file/JbNDKAXY/mere.html

MySql Plugin Include(.dll .so .inc): http://www.solidfiles.com/d/cc123799df/

                                                    http://www.4shared.com/rar/TzTY1Rgh/pluginandinclude.html

                                                  https://www.dropbox.com/s/win9mqikilzggxh/pluginandinclude.rar

Frumos 4.5/5

Daca e facut de tine.Tin minte ca am vazut pe sa-mp.com la fel

<a href="http://www.game-state.eu/93.119.30.66:7777/"><img src="http://www.game-state.eu/93.119.30.66:7777/560x95_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>          Nume:Fizzy

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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