WARNING: tag mismatch
#1

Warning:
Код:
warning 213: tag mismatch
Code:
Код:
stock GetPlayerKDR(playerid)
{
	new kills = dini_Int(pFile(playerid), "Kills");
	new deaths = dini_Int(pFile(playerid), "Deaths");
	new Float: result;
	result = kills / deaths;
	return result;
}
Line:
Код:
return result;
Reply
#2

dini_Int returns an int, whereas you are assigning the int to a float.
Reply
#3

pawn Код:
stock GetPlayerKDR(playerid)
{
    new kills = dini_Int(pFile(playerid), "Kills");
    new deaths = dini_Int(pFile(playerid), "Deaths");
    new Float: result[MAX_PLAYERS];
    result[playerid] = kills / deaths;
    return result[playerid];
}
Guess this'll work
@isolated, he's just getting the value of an int and using it for a float variable, guess that won't affect anything
Reply
#4

Quote:
Originally Posted by DavidBilla
Посмотреть сообщение
pawn Код:
stock GetPlayerKDR(playerid)
{
    new kills = dini_Int(pFile(playerid), "Kills");
    new deaths = dini_Int(pFile(playerid), "Deaths");
    new Float: result[MAX_PLAYERS];
    result[playerid] = kills / deaths;
    return result[playerid];
}
Guess this'll work
@isolated, he's just getting the value of an int and using it for a float variable, guess that won't affect anything
Tried yours and isolated's, both aren't working.
Reply
#5

pawn Код:
stock GetPlayerKDR(playerid)
{
    new kills = dini_Int(pFile(playerid), "Kills");
    new deaths = dini_Int(pFile(playerid), "Deaths");
    new result;
    result = kills / deaths;
    return result;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)