SA-MP Forums Archive
Help me fix model - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me fix model (/showthread.php?tid=655985)



Help me fix model - linhpro200294 - 04.07.2018

Quote:

./includes/ngg.pwn(130389) : error 017: undefined symbol "BODY_PART_CHEST"
./includes/ngg.pwn(130390) : error 017: undefined symbol "BODY_PART_GROIN"
./includes/ngg.pwn(130391) : error 017: undefined symbol "BODY_PART_LEFT_ARM"
./includes/ngg.pwn(130392) : error 017: undefined symbol "BODY_PART_RIGHT_ARM"
./includes/ngg.pwn(130393) : error 017: undefined symbol "BODY_PART_LEFT_LEG"
./includes/ngg.pwn(130394) : error 017: undefined symbol "BODY_PART_RIGHT_LEG"
./includes/ngg.pwn(130395) : error 017: undefined symbol "BODY_PART_HEAD"
./includes/ngg.pwn(130444) : error 017: undefined symbol "ReturnName"
./includes/ngg.pwn(130446) : error 017: undefined symbol "TotalPlayerDamages"
./includes/ngg.pwn(130446) : warning 215: expression has no effect
./includes/ngg.pwn(130446) : error 001: expected token: ";", but found "]"
./includes/ngg.pwn(130446) : error 029: invalid expression, assumed zero
./includes/ngg.pwn(130446) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


12 Errors.

Code line error, if anyone know fix help me, please

This is line 130446

Quote:

if (TotalPlayerDamages[damageid) < 1)

This is line 130444

Quote:

format(caption, sizeof(caption), "%s", ReturnName(damageid));

Quote:

case BODY_PART_CHEST:bodyname = "CHEST";
case BODY_PART_GROIN:bodyname = "GROIN";
case BODY_PART_LEFT_ARM:bodyname = "LEFT ARM";
case BODY_PART_RIGHT_ARM:bodyname = "RIGHT ARM";
case BODY_PART_LEFT_LEG:bodyname = "LEFT LEG";
case BODY_PART_RIGHT_LEG:bodyname = "RIGHT LEG";
case BODY_PART_HEAD:bodyname = "HEAD";