C:\Users\Mike\Desktop\SAMP\LG\pawno\include\ACC.inc(176) : warning 213: tag mismatch C:\Users\Mike\Desktop\SAMP\LG\pawno\include\ACC.inc(320) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
SetPlayerPos(playerid, AccountGetFloat(PlayerName, "posx"), AccountGetFloat(PlayerName, "posy"), AccountGetFloat(PlayerName, "posz"));
stock Float:AccountGetFloat(nickname[], key[])
{
if(!AccountExists(nickname)) return 0.00;
new loc[50];
format(loc, sizeof(loc), "\\users\\%s.ini", nickname);
if(INI_Open(loc))
{
new Float:ReturnFloat;
ReturnFloat = INI_ReadFloat(key);
INI_Close();
return ReturnFloat; // This is line 320: ACC.inc(320) : warning 213: tag mismatch
} else return 0.00;
}
stock Float:INI_ReadFloat(const key[])
{
new dest[11];
INI_ReadString(dest, key);
new Float:flt;
flt = floatstr(dest);
return flt; // This is line 176: ACC.inc(176) : warning 213: tag mismatch
}
stock Float:AccountGetFloat(nickname[], key[])
{
if(!AccountExists(nickname)) return 0.00;
new loc[50];
format(loc, sizeof(loc), "\\users\\%s.ini", nickname);
if(INI_Open(loc))
{
new Float:ReturnFloat;
ReturnFloat = INI_ReadFloat(key);
INI_Close();
return float ReturnFloat;
} else return 0.00;
}
stock Float:INI_ReadFloat(const key[])
{
new dest[11];
INI_ReadString(dest, key);
new Float:flt;
flt = floatstr(dest);
return float flt;
}
Adding the 'Float:' tag to your functions may fix the problem. And make sure you give credits to the SII developer for making this include, especially since you are only using parts.
|
stock INI_ReadString(dest[], const key[], maxlength = sizeof(dest))
{
if ((!gFile[E_OPEN]) || (!key[0])) return false;
new ln = -1;
while (((ln + 1) < INI_MAX_LINES) && (gCache[ln + 1][E_VALUE][0]))
{
ln ++;
if (gCache[ln][E_VALUE][0] == ';') continue;
if (!strcmp(gCache[ln][E_KEY], key, false))
{
INI_strcpy(dest, gCache[ln][E_VALUE], INI_MAX_VALUE, maxlength);
return true;
} // 156
} // 157
return false;
}
C:\Users\Mike\Desktop\SAMP\Renegade\pawno\include\ACC.inc(156) : error 079: inconsistent return types (array & non-array) C:\Users\Mike\Desktop\SAMP\Renegade\pawno\include\ACC.inc(157) : error 079: inconsistent return types (array & non-array) C:\Users\Mike\Desktop\SAMP\Renegade\pawno\include\ACC.inc(164) : warning 213: tag mismatch C:\Users\Mike\Desktop\SAMP\Renegade\pawno\include\ACC.inc(165) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
//======================================================
// Slick's INI Include 2.0.6
//
// © Copyright 2008-2009, [DRuG]Slick
// This file is provided as is (no warranties).
//======================================================
stock GetPlayerZPos(playerid)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
return float z;
}
stock GetFloat()
{
new Float: FLOAT;
FLOAT = 12154.454545;
return float:FLOAT;
}
stock Float:AccountGetFloat(nickname[], key[])
{
if(!AccountExists(nickname)) return 0.00;
new loc[50];
format(loc, sizeof(loc), "\\users\\%s.ini", nickname);
if(INI_Open(loc))
{
new Float:ReturnFloat;
ReturnFloat = INI_ReadFloat(key);
INI_Close();
return float:ReturnFloat;
} else return 0.00;
}
stock Float:INI_ReadFloat(const key[])
{
new dest[11];
INI_ReadString(dest, key);
new Float:flt;
flt = floatstr(dest);
return float:flt;
}
C:\Users\Mike\Desktop\SAMP\Renegade\pawno\include\ACC.inc(156) : error 079: inconsistent return types (array & non-array) C:\Users\Mike\Desktop\SAMP\Renegade\pawno\include\ACC.inc(157) : error 079: inconsistent return types (array & non-array) C:\Users\Mike\Desktop\SAMP\Renegade\pawno\include\ACC.inc(164) : warning 213: tag mismatch C:\Users\Mike\Desktop\SAMP\Renegade\pawno\include\ACC.inc(165) : warning 213: tag mismatch C:\Users\Mike\Desktop\SAMP\LG\gamemodes\adv.pwn(672) : warning 203: symbol is never used: "djson_GameModeExit" C:\Users\Mike\Desktop\SAMP\LG\gamemodes\adv.pwn(672) : warning 203: symbol is never used: "djson_GameModeInit" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
stock INI_ReadString(dest[], const key[], maxlength = sizeof(dest))
{
if ((!gFile[E_OPEN]) || (!key[0])) return false;
new ln = -1;
while (((ln + 1) < INI_MAX_LINES) && (gCache[ln + 1][E_VALUE][0]))
{
ln ++;
if (gCache[ln][E_VALUE][0] == ';') continue;
if (!strcmp(gCache[ln][E_KEY], key, false))
{
INI_strcpy(dest, gCache[ln][E_VALUE], INI_MAX_VALUE, maxlength);
return true;
} // Line 156
} // Line 157
return false;
}
stock INI_ReadInt(const key[])
{
new dest[11]; // Line 164
if (INI_ReadString(dest, key)) return strval(dest); // Line 165
return false;
}
Wow, this is really wierd, 1 week ago I helped a guy with the same problem, here is what I doned:
pawn Код:
|
stock Float:GetPlayerZPos(playerid)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
return z;
}
That was not you, that was Finn. And his way to fix it was:
pawn Код:
|