![]() |
What the hell...
What is wrong with this?
It wont hide the img if (playertouchsme) {toweapons Fish} if (playerchats) { if (strequals(#c,Fish)) { this.fon==1; setplayerprop #c,; showimg 69,systemf.gif,playerx-1.75,playery-1.5; showimg 80,@Arial@bc@#s(fishpounds),playerx+1.5,playery-.75; changeimgcolors 80,0,0,0,0; changeimgvis 80,1; changeimgvis 69,1; if (keydown(4)&&this.fon==1) { hideimg 69; hideimg 80; this.fon=0; } }} |
Please Help
|
I think you need to add if(created){this.fon=0;}
|
Well, I think there must be something wrong, other wise it would hide, wouldn't it? of course you could try Lindsey's idea, but then again, I dont trust women, this is why:
Quote:
Quote:
|
The reason it didnt work is this.fon was never set to 0 like it was supposed to.
|
Uhh... Try this... I'll explain the problem at the bottom...
NPC Code: The problem was that the keydown wasn't getting through, and this.fon wasn't getting set to 0 :p Just in case you don't understand playerchats... Playerchats is activated as soon as the players hits enter in the text box, and only for a split second. Hope that helped :-P |
Quote:
Still won't work... :\ |
*notices something horribly simple that he screwed up on and pukes*
Remind me not to visit this board only at 2 a.m.... Change NPC Code: to NPC Code: |
English please? I only know a few this variables, but could someone give me a list of 'em so I can read this crap? I wont call it crap if I get help....
-Rebel95 |
| All times are GMT +2. The time now is 02:08 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.