array must be indexed
#1

Hello..what i need to do ?

Код:
D:\Los Santos Roleplay\lsrp\gamemodes\ls-rp.pwn(10259) : error 033: array must be indexed (variable "bodypart")
D:\Los Santos Roleplay\lsrp\gamemodes\ls-rp.pwn(10259) : error 033: array must be indexed (variable "bodypart")

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
	if(PlayerIsWounded(playerid))
	{
		SetPlayerHealth(playerid, 1000.0);
	}
	if((0 <= weaponid <= 46) || weaponid == 54)
	{
	    new bodypart[128];
		if(BODY_PART_TORSO <= bodypart <= BODY_PART_HEAD) Damage[playerid][(bodypart - 3)][weaponid]++;
	}
    return 1;
}
Here i heve this errors:

Код:
if(BODY_PART_TORSO <= bodypart <= BODY_PART_HEAD) Damage[playerid][(bodypart - 3)][weaponid]++;
Reply


Messages In This Thread
array must be indexed - by DonBonanno - 31.03.2015, 18:25
Re : array must be indexed - by StreetRP - 31.03.2015, 18:26
Re: array must be indexed - by DonBonanno - 31.03.2015, 18:29
Re: array must be indexed - by DonBonanno - 31.03.2015, 19:34
Re: array must be indexed - by zT KiNgKoNg - 31.03.2015, 19:47
Re: array must be indexed - by DonBonanno - 31.03.2015, 20:01
Re: array must be indexed - by DonBonanno - 02.04.2015, 19:05
Re: array must be indexed - by Lordzy - 02.04.2015, 19:17
Re: array must be indexed - by DonBonanno - 02.04.2015, 20:04
Re: array must be indexed - by PowerPC603 - 02.04.2015, 20:59

Forum Jump:


Users browsing this thread: 1 Guest(s)