Jump to content
  • 0

Problema prietenii


CristisiCristiana

Question

Problema intalnita (descriere):Am gasit pe net un sistem smecher de prieteni dar nu stiu de mysql foloseste, oricum da multe erori...Ma poti ajuta sa fac functile pentru r6?
Ero(area / rile) / warning-(ul / urile):
Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:Da, dar nu inteleg de pe wiky

C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(966) : warning 213: tag mismatch
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(966) : warning 202: number of arguments does not match definition
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(967) : warning 213: tag mismatch
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(968) : error 017: undefined symbol "mysql_function_query"
Liniile de cod / sursa / script-ul(obligatoriu):

forward LoadData(playerid);
public LoadData(playerid)
{
    new szQuery[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    mysql_real_escape_string(name, PlayerInfo[playerid][pUsername], mysql_iConnectionHandle[0], MAX_PLAYER_NAME);
    format(szQuery, sizeof szQuery, "SELECT * FROM `accountdb` WHERE `Username` = '%s'", PlayerInfo[playerid][pUsername]);
    mysql_function_query(mysql_iConnectionHandle[0], szQuery, true, "OnQueryFinish", "ii", THREAD_ACCOUNT_LOADDATA, playerid);
    return 1;
}

 

Edited by CristisiCristiana
Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0
  • 0
  • 0

C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(938) : warning 213: tag mismatch
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(938) : warning 202: number of arguments does not match definition
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(939) : warning 213: tag mismatch

 

Am inlocuit:

forward LoadData(playerid);
public LoadData(playerid)
{
    new szQuery[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    mysql_real_escape_string(name, PlayerInfo[playerid][pUsername], mysql_iConnectionHandle[0], MAX_PLAYER_NAME);
    format(szQuery, sizeof szQuery, "SELECT * FROM `accountdb` WHERE `Username` = '%s'", PlayerInfo[playerid][pUsername]);
    mysql_query(mysql_iConnectionHandle[0], szQuery, true, "OnQueryFinish", "ii", THREAD_ACCOUNT_LOADDATA, playerid);
    return 1;
}
Link to comment
Share on other sites

  • 0

Incearca sa pui includeuriile de la el si dupa sa recomplimezi.

(Dar repune sistemul original).

P.S: De unde l-ai descarcat tu in mod normal ar trebui sa spuna ce MySQL foloseste.

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

  • 0

Daca nu stii MySQL R6 va fi ceva mai greu,o posibilitate ar fi sa treci tu GM-ul pe MySQL R7 

Poti verifica aici si vei vedea ce trebuie sa faci(trebuie si gandit putin..)

https://wiki.sa-mp.com/wiki/MySQL

 

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

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