return error on side health?
#4

Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
Make sure you have it like this in your enum.
pawn Код:
enum p_info
{
    Float:pHealth//<< this
};
new PlayerInfo[MAX_PLAYERS][p_info]
Already added on top script

Quote:
Originally Posted by GoldenLion
Посмотреть сообщение
Код:
stock Float:GetPlayerDarah(playerid) 
{
	return PlayerInfo[playerid][pHealth];// line 2110
}
You must add the "Float" tag if the function returns a float.
get error
Код:
gamebaru.pwn(2108) : warning 208: function with tag result used before definition, forcing reparse
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply


Messages In This Thread
return error on side health? - by kloning1 - 29.01.2017, 10:04
Re: return error on side health? - by SilentSoul - 29.01.2017, 10:06
Re: return error on side health? - by GoldenLion - 29.01.2017, 10:07
Re: return error on side health? - by kloning1 - 29.01.2017, 10:12
Re: return error on side health? - by GoldenLion - 29.01.2017, 10:27

Forum Jump:


Users browsing this thread: 1 Guest(s)