what did you try to add?
and you don't got void for that
|
|

i added a void in my npchandler.java, and i always get this..how do i fix? im using fd 2.4 btwCode:NPCHandler.java:24: newNPC(int,int,int,int,int,int,int,int,int,int) in NPCHandle r cannot be applied to (int,int,int,int,int,int,int,int,int,int,boolean) server.npcHandler.newNPC(npcID, (absX), (absY), height, absX + 3 , absY + 3, absX - 3, absY - 3, 0, server.npcHandler.GetNpcListHP(npcID), false) ; ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error Finished! Press any key to continue . . .
---------- Post added at 05:39 PM ---------- Previous post was at 05:19 PM ----------
sorry for bump, but im really having trouble on this and i need a quick fix.

Code:public void spawnANPC(int npcID, int absX, int absY, int height) { server.npcHandler.newNPC(npcID, (absX), (absY), height, absX + 3, absY + 3, absX - 3, absY - 3, 0, server.npcHandler.GetNpcListHP(npcID), false); }

if you read your error it says
newNPC(int,int,int,int,int,int,int,int,int,int) in NPCHandler cannot be applied to
..............(int,int,int,int,int,int,int,int,int ,int,boolean)
which shows you, you have a boolean at the end that isnt needed
or if you do want it there that the method doesnt exist
| « npc stops attacking after death stage | Need Help Setting Up Xampp with Apache to Host a RuneScape Private Server » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |