Instead of Player.playerEquip... just use client.playerEquip...
|
IF YOU ARE A 11 YEARS OLD "CODER" LEAVE THIS THREAD, NOW!
ok, i couldn't help myself, this is like smoking seriously, I was gonna quit working with RSPS and after 30 minutes I downloaded a Shard source.
I asked from some peeps if its possible to edit/make new packets, and I've been working on adding 'Operate' to a SHARD source. Once I finish, it will be released but I wont help ANYONE to convert it for Czar or Delta.
here is my problem(the main reason why I cannot do this alone is that i've(ONCE AGAIN!) never ever before seen such error.)
Code:src\com\rs\worldserver\model\player\packet\ItemOperate.java:36: non-static variable playerEquipment cannot be referenced from a static context if (itemSlot < 0 || itemSlot >= Player.playerEquipment.length || Player.playerEquipment[itemSlot] != itemId) { ^ src\com\rs\worldserver\model\player\packet\ItemOperate.java:36: non-static variable playerEquipment cannot be referenced from a static context if (itemSlot < 0 || itemSlot >= Player.playerEquipment.length || Player.playerEquipment[itemSlot] != itemId) { ^ 2 errors
Instead of Player.playerEquip... just use client.playerEquip...
um i think its saying you need to make playerEquipment public in the player.java
EDIT: worked, thanks. gotta keep this in mind
Dude, what I am telling you is right. use client.blaa, the Client class extends the player class
lol reading the compile error helps little kid
lol soz, i thought my lil' bro would come and say shit here... hes 13 or so idk
i have a small problem, just a small one. my server compiles fine, but i made it so
which SHOULD work like that, when i'm wearing a shield (ID 2621(gonna change this before i put my server to public, i just took the ints off renamed delta client so...)) and i operate, it should say some shitshizzle. idk why, but it wont.Code:case 2621: sendMessage("fuckoffnoob"); break;
also, i know sendMessage doesnt work alone in Shard but i didnt feel like goin bak on my ubuntu and takin the whole code from there... >.>
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |