error 035: argument type mismatch (argument 1)
#1

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 );
}
Reply
#2

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?

~
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)