Sorry to bother you guys again. Tried to test Moosh's Newbie Item script https://www.purezc.n...=scripts&id=310, but when compiling, I get a following error:
PASS 4:
LINE 395: ERROR T21: COULD NOT MATCH TYPE SIGNATURE DRAWFILE(FLOAT, FLOAT, FLOAT, FLOAT, FLOAT, FLOAT, BOOL, FLOAT)
LINE 900: ERROR T21: COULD NOT MATCH TYPE SIGNATURE DRAWFILE(FLOAT, FLOAT, FLOAT, FLOAT, FLOAT, FLOAT, BOOL, FLOAT)
Here are the parts of the code that it claims to be troublesome:
while(MooshItem_InputButtonItem(ID)){ i = (i+1)%360; if(i%3==0){ Link->InputUp = false; Link->InputDown = false; Link->InputLeft = false; Link->InputRight = false; } if(!MooshItem_CanTakeResource(ID, mpCost)) chargeCounter = 0; if(chargeCounter<arg1){ chargeCounter++; if(chargeCounter==arg1) Game->PlaySound(SFX_MOOSHITEM_CHARGE); } else{ DrawTile(3, Link->X+Link->DrawXOffset, Link->Y+Link->DrawYOffset-Link->Z, Link->Tile, 1, 1, 9-((Floor(i/2)%32)>>1), -1, -1, 0, 0, 0, Link->Flip, true, 128); //Line 395 } Waitframe(); }
else if(lFlags[i]&MIF_360WAY){ //360 degree animations lgroup[i]->DrawYOffset = -1000; if(lType[i]!=3) lgroup[i]->Dir = AngleDir4(WrapDegrees(lAng[i])); if(Link->HP>0){ if(lFlags[i]&MIF_2X2) DrawTile(2, x, y-2-lgroup[i]->Z, tile, 2, 2, lgroup[i]->CSet, -1, -1, x, y-2-lgroup[i]->Z, lAng[i], 0, true, 128); //Line 900 else DrawTile(2, x, y-2-lgroup[i]->Z, tile, 1, 1, lgroup[i]->CSet, -1, -1, x, y-2-lgroup[i]->Z, lAng[i], 0, true, 128); } }