Jump to content
  • 0

Comanda cmd:friends


CristisiCristiana

Question

Problema intalnita (descriere):Am trecut comenzile de la sistmeul de prieteni pe mysql r6 si primesc cateva erori pe care nu stiu de la ce sunt...
Ero(area / rile) / warning-(ul / urile):
(23897) : warning 213: tag mismatch
format(query, sizeof(query), "SELECT * FROM `friendsdb` WHERE `UserDBID` = %i", PlayerInfo[playerid][pDBID]);
(23898) : error 035: argument type mismatch (argument 2)
mysql_query(query, "OnPlayerRequestFriends", REQUEST_FRIEND_THREAD, playerid);
Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:Da

//========================================[CMD:FRIENDS]========================================================//
CMD:friends(playerid, params[])
{
    new query[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
     format(query, sizeof(query), "SELECT * FROM `friendsdb` WHERE `UserDBID` = %i", PlayerInfo[playerid][pDBID]);
    mysql_query(query, "OnPlayerRequestFriends", REQUEST_FRIEND_THREAD, playerid);
    return 1;
}
Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0
  • 0

format(query, sizeof(query), "SELECT * FROM `friendsdb` WHERE `UserDBID` = '%i'", PlayerInfo[playerid][pDBID]);

si ai grija ca variabila PlayerInfo sa fie definite astfel:

new PlayerInfo[MAX_PLAYERS][pData];

 

242086.png

Link to comment
Share on other sites

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.