Witam. Ponownie mam problem. Podczas reparsowania wyskakuje expected i już mi ręce opadają. Próbuje poprawić ale ciągle to samo. Oto skrypt: INSTANCE ItFo_Raspberry (C_Item)
{
name = "Malina";
mainflag = ITEM_KAT_FOOD;
flags = ITEM_MULTI;
value = 10;
visual = "ItFo_Plants_Berrys_01.3DS";
material = MAT_LEATHER;
scemeName = "FOOD";
on_state[0] = Use_Raspberry;
description = name;
TEXT[1] = NAME_Bonus_HP;
COUNT[1] = 5;
TEXT[5] = NAME_Value;
COUNT[5] = 10;
};
FUNC VOID Use_Raspberry()
{
Npc_ChangeAttribute (self, ATR_HITPOINTS, 5);
const int Raspberry_Bonus = 0;
if (Npc_IsPlayer (self))
{
Raspberry_Bonus = Raspberry_Bonus + 1;
if (Raspberry_Bonus == 10)
{
B_RaiseAttribute (self, ATR_DEXTERITY,2);
Snd_Play ("LevelUp");
};
};
Błąd wyskakuje w ostatniej linijce.