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=573287)



Error - System64x - 06.05.2015

pwn(2977) : error 035: argument type mismatch (argument 1)
pwn(3016) : error 035: argument type mismatch (argument 1)

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

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

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


Re: Error - J0sh... - 06.05.2015

1. Stop making loads of threads.

2. What is THREAD_CHECK_BANS_LIST/THREAD_CHECK_ACCOUNT_USERNAME?


Re: Error - Azula - 06.05.2015

use mysql_tquery