#1

(23897) : error 035: argument type mismatch (argument 2)
(23911) : error 035: argument type mismatch (argument 3)
(23916) : error 035: argument type mismatch (argument 3)

23897
mysql_query(query, "OnPlayerRequestFriends", REQUEST_FRIEND_THREAD, playerid);
23911
mysql_query(query, true, "OnPlayerRequestFriends", "ii", ADD_FRIEND_THREAD, playerid);
23916
mysql_query(query, true, "OnPlayerRequestFriends", "ii", ADD_FRIEND_THREAD, playerid);

Use mysql r6.
Reply
#2

https://sampwiki.blast.hk/wiki/MySQL#mysql_query

PHP код:
mysql_query(query[], resultidextraidconnectionHandle
  • query[] The query you want to process.
  • resultid Optional (if you specify this query will be processed in a separate thread).
  • extraid Optional (extra variable that would be processed to the callback.
  • connectionHandle The connection handle this will be processed on
Reply
#3

what?
Reply
#4

uppp
Reply
#5

PHP код:
mysql_query(queryREQUEST_FRIEND_THREADplayerid);
public 
OnQueryFinish(query[], resultidextraidconnectionHandle)
{
    switch(
resultid)
    {
        case 
REQUEST_FRIEND_THREAD:
        {
            
// ACTION
        
}
    }
    return 
1;

Reply
#6

I do not understand anything of what you say good man ... ...
Reply
#7

Dude, copiaza ce ti-a dat Dutheil, scrie codul dupa bracket si gata.. mai esti si moderator pe gta-mp. Vezi ca dai in balta cu engleza.

* Just helping him in romanian. He isn't able to speak english properly.
Reply
#8

Well ba Donboo I still have that to be passed on mysql t6
Код:
forward OnQueryFinish(resultid, extraid);
public OnQueryFinish(resultid, extraid) {
	switch(resultid) {
		case THREAD_ACCOUNT_LOADDATA: {
			if(IsPlayerConnected(extraid)) {


				new rows;

			    cache_get_data(rows, fields, mysql_iConnectionHandle[0]);

			    if(rows) {
	   				new	szResult[64];

					for(new row; row < rows; row++)	{
						cache_get_field_content(row, "id", szResult, mysql_iConnectionHandle[0], MAX_PLAYER_NAME); PlayerInfo[extraid][pDBID] = strval(szResult);

						break;
					}
				}
			}
			return 1;
		}
		case THREAD_NO_RESULT: { return 1; }
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)