Raised This Month: $ Target: $400
 0% 

Argument Type Mismatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EttanPlaypoint
New Member
Join Date: Jul 2015
Old 12-11-2015 , 22:21   Argument Type Mismatch
Reply With Quote #1

Get 13 errors when i try to compile this.

These are the 13 lines and the including errors.


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

static const String:sMat[2][] = {
".vmt",
".vtf"
};

Warning: 203: symbol in never used: "sMat"

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

HookEvent("player_spawn", player_spawn);

Warning 217: Loose indentation

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

new String:sID[64];
GetClientAuthId(client, sID, sizeof sID);

Error :035: Argument type mismatch <argument 2>
Argument type mismatch <argument 3>

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

if(SQL_HasResultSet(hndl)){
new iKtory;
new String:sSid[64], String:sMojeSid[64];
GetClientAuthId(client, sMojeSid, sizeof sMojeSid);

Error 035 argument type mismatch <argument 2>
argument type mismatch <argument 3>

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

SavePlayerData(client) {
if(!g_bFail && g_bInDB[client]){
if(g_iFragi[client]){
new String:sQuery[1024], String:sSteamID[64], String:sName[64];
sSteamID = NULL_STRING
sName = NULL_STRING;
GetClientAuthId(client, sSteamID, sizeof(sSteamID));
GetClientName(client, sName, sizeof sName);

Error :035: Argument type mismatch <argument 2>
Argument type mismatch <argument 3>

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

if(!g_bFail){
new String:sQuery[512], String:sSteamID[64];
sSteamID = NULL_STRING;
GetClientAuthId(client, sSteamID, sizeof(sSteamID));
GetClientAuthId(client, g_sSid[client], sizeof g_sSid[]);


Error :035: Argument type mismatch <argument 2>
Argument type mismatch <argument 3>

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


new String:sSID[64];
GetClientAuthId(id, sSID, 64);



Error :035: Argument type mismatch <argument 2>

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

new String:sSid[64];
GetClientAuthId(client, sSid, sizeof sSid);

Error :035: Argument type mismatch <argument 2>
Argument type mismatch <argument 3>




Does anybody know what is wrong with the code?
Any tips are appreciated.

//Ettan
EttanPlaypoint is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-11-2015 , 23:26   Re: Argument Type Mismatch
Reply With Quote #2

You should probably post in the SourceMod section for SourceMod help.
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode