Jump to content

Tutorial Register/Login MYSQL R39


WiDuAlK

Recommended Posts

  • 3 weeks later...

Am dat new si am inceput sa lucrez de pe acest tutorial dar cand am dat compile am primit aceasta eroare 

C:UsersAlexDesktopPROJECTXgamemodesproject.pwn(84) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

P_Data[playerid][pParola] = cache_get_field_content_int(0, "Parola", temporar);// i se vaextrage parola si i se verifica daca coincide cu numele. Se foloseste new-ul temporar pentru extragerea parolei, ea retinandu-se temporar(pana cand se deconecteaza jucatorul)
Link to comment
Share on other sites

 

Am dat new si am inceput sa lucrez de pe acest tutorial dar cand am dat compile am primit aceasta eroare 

C:UsersAlexDesktopPROJECTXgamemodesproject.pwn(84) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

P_Data[playerid][pParola] = cache_get_field_content_int(0, "Parola", temporar);// i se vaextrage parola si i se verifica daca coincide cu numele. Se foloseste new-ul temporar pentru extragerea parolei, ea retinandu-se temporar(pana cand se deconecteaza jucatorul)

Greseala mea... Nu am vazut ca e "cache_get_field_content_int" , verifica din nou tutorialul la OnLogin, nu vei mai avea aceasta problema

  • Upvote 4
Link to comment
Share on other sites

Mersi. Totusi nu inteleg commenturile de mai sus, majoritatea spune ca e bun si nustiu ce.. dar ei nici macar nu testeaza/verifica codul. Aiurea. Mersi inca odata.

Cu placere, pai comentariile sunt pozitive, na sa dea bine in topic sau sa adune posturi... Personal pot sa am 10, 20, 50 , 100, 10000 pe mine nu ma intereseaza numarul de posturi, ci sa fiu activ, si cumva sa ajut comunitatea dupa cum pot, daca am 100000 de posturi si cel putin 70% sunt comentarii aiurea si 29.9% sunt raspunsuri date aiurea nu are nici un farmec, poate gresesc eu, poate e mai bine sa faci asta, adica totusi TRAIM IN ROMANIA , si e ceva normal de 20 de ani incoace, adica de ce sa ne schimbam , sa ne ridicam mai sus ca alte tari, si aici nu ma refer ca daca dau 3 raspunsuri bune pe forum, gata, tara mea e mai fericita si cu 3 metri mai sus, dar si in real life(tipic SAMP :)) ) ne trezim ca comentam aiurea, facem niste afirmati sa ne aflam in treaba... chesti care nu au legatura cu PC-ul. Na am dat-o in filozofie degeaba.... nu cred ca invata nimeni nimic din ce am vrut eu sa subliniez, probabil imi "racesc gura" degeaba, dar am sa tot o fac, cat voi putea. PACE!

  • Upvote 1
Link to comment
Share on other sites

Salutare ! sunt nou pe aici. M-am decis sa intru pe acest site de tutoriale pentru ca sunt incepator, am incercat de multe ori si nu mi-a reusit scriptul din motive ca nu aveam experienta pana am inceput sa inteleg cum sta treaba putin. Acum tot ce mai este de facut este sa ma ajuti la cateva erorii care nu le inteleg bine.

 
C:UsersMzqDesktopServer1gamemodesGamemode.pwn(60) : error 017: undefined symbol "mysql_host"
C:UsersMzqDesktopServer1gamemodesGamemode.pwn(63) : error 017: undefined symbol "mysql_db"
C:UsersMzqDesktopServer1gamemodesGamemode.pwn(68) : error 017: undefined symbol "mysql_db"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
 
 
3 Errors.
 
Deci la mysql_host daca las asa nu este bine si daca pun adresa de ip face la fel (server facut pe pc)
La db , am pus numele bazei de date si nu vrea. Ex: Database (error 017: undefined symbol "mysql_Database") [asa se numeste baza de date]
 
Un sprijin din partea ta imi este foarte folositor , ceva mai detaliat daca se poate. Multumesc frumos ! Stima
Edited by Mzq95
Link to comment
Share on other sites

 

Salutare ! sunt nou pe aici. M-am decis sa intru pe acest site de tutoriale pentru ca sunt incepator, am incercat de multe ori si nu mi-a reusit scriptul din motive ca nu aveam experienta pana am inceput sa inteleg cum sta treaba putin. Acum tot ce mai este de facut este sa ma ajuti la cateva erorii care nu le inteleg bine.

 
C:UsersMzqDesktopServer1gamemodesGamemode.pwn(60) : error 017: undefined symbol "mysql_host"
C:UsersMzqDesktopServer1gamemodesGamemode.pwn(63) : error 017: undefined symbol "mysql_db"
C:UsersMzqDesktopServer1gamemodesGamemode.pwn(68) : error 017: undefined symbol "mysql_db"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
 
 
3 Errors.
 
Deci la mysql_host daca las asa nu este bine si daca pun adresa de ip face la fel (server facut pe pc)
La db , am pus numele bazei de date si nu vrea. Ex: Database (error 017: undefined symbol "mysql_Database") [asa se numeste baza de date]
 
Un sprijin din partea ta imi este foarte folositor , ceva mai detaliat daca se poate. Multumesc frumos ! Stima

 

Refa te rog tutorialul cap coada, nu omite nimic, si ai sa vezi ca nu iti mai da aceasta eroare

  • Upvote 1
Link to comment
Share on other sites

#define mysql_host "localhost" // aici punem ip hostului. Daca folosim in PC GM lasam localhost
#define mysql_db "bazadate"// aici punem numele bazei de date.
#define mysql_user "root"// aici punem numele userului de la host. Daca folositi PC lasati root.
#define mysql_pass ""

ai pus?

 

Totul este pus , crede-ma . Daca era ceva gresit la script nu mai postam si mai faceam deranj pe aici . (folosesc router d-link. Am port forwarding la [Apache-MySQL-SA-MP] ) Multumesc !

Edited by Mzq95
Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Nu mai conteaza, am rezolvat. Aveam R33, am bagat R39 si problema cu Warnings s-a remediat.

Salut. Dupa ce am dat Compile, au aparut 2 Warnings.

C:\Documents and Settings\Administrator\Desktop\Time2Play\gamemodes\Untitled.pwn(86) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\Desktop\Time2Play\gamemodes\Untitled.pwn(86) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.

Linia 86:

Tin sa mentionez ca daca sterg acel "t" de la "tquery" nu mai primesc nici un Warning. Multumesc!

mysql_tquery(handle, query); // se va trimite setarile si se va interoga callback-ul OnRegistration
Edited by SoundTech
Link to comment
Share on other sites

Puteti va rog sa faceti acesta pe un gm cu versiunea 0.3.7 ...Eu nu reusesc, 

Ba imi da erroarea asta ba alta.

Va rog daca puteti sa il faceti si sa il puneti pe pastebin

 

C:\Users\\Desktop\Dary\new server\pawno\test.pwn(114) : error 017: undefined symbol "MySQLConnect"
C:\Users\\Desktop\Dary\new server\pawno\test.pwn(308) : warning 235: public function lacks forward declaration (symbol "OnPlayerLogin")
C:\Users\\Desktop\Dary\new server\pawno\test.pwn(314) : error 017: undefined symbol "DIALOG_LOGIN"
C:\Users\\Desktop\Dary\new server\pawno\test.pwn(318) : error 017: undefined symbol "DIALOG_REGISTER"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

Link to comment
Share on other sites

Nu mai conteaza, am rezolvat. Aveam R33, am bagat R39 si problema cu Warnings s-a remediat.

Salut. Dupa ce am dat Compile, au aparut 2 Warnings.

C:\Documents and Settings\Administrator\Desktop\Time2Play\gamemodes\Untitled.pwn(86) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\Desktop\Time2Play\gamemodes\Untitled.pwn(86) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.

Linia 86:

Tin sa mentionez ca daca sterg acel "t" de la "tquery" nu mai primesc nici un Warning. Multumesc!

mysql_tquery(handle, query); // se va trimite setarile si se va interoga callback-ul OnRegistration

​Da, scuze, greseala mea, de cand scriam tutorialul. MODIFICAT!!!

Puteti va rog sa faceti acesta pe un gm cu versiunea 0.3.7 ...Eu nu reusesc, 

Ba imi da erroarea asta ba alta.

Va rog daca puteti sa il faceti si sa il puneti pe pastebin

 

​Bun , fix si tie, ti l-am facut pe skype, ai vazut prea bine, casca ochii bine si respecta pasii, altfel iti da erori.

  • Upvote 1
Link to comment
Share on other sites

  • WopsS featured this topic

C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(58) : error 017: undefined symbol "cache_get_data"
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(57) : warning 203: symbol is never used: "fields"
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(73) : error 017: undefined symbol "mysql_format"
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(73) : warning 202: number of arguments does not match definition
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(73) : warning 202: number of arguments does not match definition
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(73) : warning 202: number of arguments does not match definition
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(74) : error 017: undefined symbol "mysql_tquery"
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(91) : error 017: undefined symbol "mysql_format"
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(91) : warning 202: number of arguments does not match definition
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(91) : warning 202: number of arguments does not match definition
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(91) : warning 202: number of arguments does not match definition
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(91) : warning 202: number of arguments does not match definition
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(91) : warning 202: number of arguments does not match definition
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(92) : error 035: argument type mismatch (argument 1)
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(104) : error 017: undefined symbol "mysql_format"
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(104) : warning 202: number of arguments does not match definition
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(104) : warning 202: number of arguments does not match definition
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(104) : warning 202: number of arguments does not match definition
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(105) : error 017: undefined symbol "mysql_tquery"
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(117) : error 017: undefined symbol "cache_get_data"
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(120) : error 017: undefined symbol "cache_get_field_content"
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(121) : error 017: undefined symbol "cache_get_field_content_int"
C:\Users\TuNNe\Desktop\G RPG v1.5\filterscripts\Login.pwn(116) : warning 203: symbol is never used: "fields"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.

Am gresit eu ceva..?M-am uitat de 2 ori pe tutorial,nu am gresit cu nimic... 

Ofer servicii de web designer/developer(contact me pentru portofoliu etc)

Metode de plata: Paysafecard,Skrill,PayPal,Bitcoin

Ofer si servicii de Penetration Testing.

Vand si VPN-uri. 5 euro pe luna

Skype: live:mrtunne.tkcode

Discord: https://mrtunne.info/discord

Link to comment
Share on other sites

A,lol,aveam R33 :)) 

Mersi :)

Ofer servicii de web designer/developer(contact me pentru portofoliu etc)

Metode de plata: Paysafecard,Skrill,PayPal,Bitcoin

Ofer si servicii de Penetration Testing.

Vand si VPN-uri. 5 euro pe luna

Skype: live:mrtunne.tkcode

Discord: https://mrtunne.info/discord

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.