AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Argument Type Mismatch (https://forums.alliedmods.net/showthread.php?t=275976)

EttanPlaypoint 12-11-2015 22:21

Argument Type Mismatch
 
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

fysiks 12-11-2015 23:26

Re: Argument Type Mismatch
 
You should probably post in the SourceMod section for SourceMod help.


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

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