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
|