SA-MP Forums Archive
Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error (/showthread.php?tid=585935)



Error - Jimmi - 17.08.2015

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


Re : Error - Dutheil - 17.08.2015

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

PHP код:
mysql_query(query[], resultidextraidconnectionHandle



Re: Error - Jimmi - 17.08.2015

what?


Re: Error - Jimmi - 17.08.2015

uppp


Re : Error - Dutheil - 17.08.2015

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




Re: Error - Jimmi - 17.08.2015

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


Re: Error - Donboo - 18.08.2015

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.


Re: Error - Jimmi - 18.08.2015

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;
}