View Single Post
  #1  
Old 06-30-2011, 06:28 PM
Linkishback Linkishback is offline
Banned
Linkishback's Avatar
Join Date: Jan 2005
Location: The Netherlands
Posts: 34
Linkishback is on a distinguished road
Send a message via AIM to Linkishback Send a message via MSN to Linkishback
showpoly inside class

Hi, I'm making a class to draw basic shapes but it won't draw!

CLASS: player-drawing
NPC Code:

//#CLIENTSIDE
public function showRect(id, x, y, width, height) {
showpoly(id, {x, y, x+width, y, x+width, y+height, x, y+height});
player.chat = "Nice rectangle!";
}



I call it by joining the class to the player and calling:

WEAPON: Gui
NPC Code:
player.showRect(201, 0,0,200,200);



Am I doing something wrong, or is it not posible to do this with a class?

Thanks!
Reply With Quote