SA-MP Forums Archive
error 035: argument type mismatch (argument 1) - 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 035: argument type mismatch (argument 1) (/showthread.php?tid=573175)



error 035: argument type mismatch (argument 1) - System64x - 05.05.2015

stock CheckPlayerAccount( playerid )
{
format( gsQuery, 256, "SELECT `IP` FROM `Accounts` WHERE `Name` = '%s'", PlayerName( playerid ) );
mysql_query( gsQuery, THREAD_CHECK_ACCOUNT_USERNAME, playerid );
}

--------------------------------------------

format( gsQuery, 512, "SELECT * FROM `Banlist` WHERE `IP` = '%s' OR `Name` = '%s'", connecting_ip, PlayerName( playerid ) );
mysql_query( gsQuery, THREAD_CHECK_BANS_LIST, playerid );
TogglePlayerSpectating(playerid, true);
LoadRemoveBuildings( playerid );
return ( 1 );
}


Re: error 035: argument type mismatch (argument 1) - denNorske - 05.05.2015

Show us which lines that are affected and, could you show us how you save the "connecting_ip", ?
Also, the gsQuery, how is that defined?

~


Re: error 035: argument type mismatch (argument 1) - MP2 - 05.05.2015

- Use [ pawn ] tags.
- Indent your code.
- Tell us which line it is on... are we meant to guess?
- Check the syntax of mysql_query.