array must be indexed
#10

You were using integer operations on strings, you can't compare strings that way.

pawn Код:
new bodypart[128];
if(BODY_PART_TORSO <= bodypart <= BODY_PART_HEAD)
You are checking 2 integer values (BODY_PART_TORSO and BODY_PART_HEAD) against a string-type variable (bodypart), which btw is empty as you just declared it but you didn't put anything inside it.

As for the bodypart parameter, you need to upgrade your server to 0.3z.
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
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)