use code tags
Example:
Code:case "suicide": player.applyHit(new Hit(player, 9001, HitLook.REGULAR_DAMAGE)); player.getPackets().sendGameMessage( "It's over 9000!"); return true;
|
hey guys im getting this error
starting...
src\com\rs\game\player\dialogues\TRADE.java:12: error: method sendOptionsDialogu
e in class Dialogue cannot be applied to given types;
sendOptionsDialogue("TRADE", "<shad=FD3EDA>trade",
^
required: String,String[]
found: String,String,byte
reason: argument type byte does not conform to vararg element type String
Note: src\com\rs\content\exchange\GrandExchange.java uses unchecked or unsafe op
erations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Tryck ned valfri tangent för att fortsätta...
any ideas what im doing wrong?
use code tags
Example:
Code:case "suicide": player.applyHit(new Hit(player, 9001, HitLook.REGULAR_DAMAGE)); player.getPackets().sendGameMessage( "It's over 9000!"); return true;
sendOptionsDialogue requires a String for the first parameter and a String[] for the second.
This is how it should be:
Code:sendOptionsDialogue("Select an Option", "Option 1", "Option 2", "Option 3");
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |