09.11.2010, 22:29
Quote:
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.
|
pawn Код:
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.
And of course I always leave credits at the top of the scripts, I just only posted the parts having to do with the Float problem.
pawn Код:
//======================================================
// Slick's INI Include 2.0.6
//
// © Copyright 2008-2009, [DRuG]Slick
// This file is provided as is (no warranties).
//======================================================