![]() |
Showimg
Well, I'm trying to show an image, but there's some sort of strange problem ---> the image just won't show oO
Everything else in the event works fine, and it's all serversided.. PHP Code:
|
showimg() is a clientside function, I believe.
|
Quote:
|
Quote:
|
Well.
It's serverside, but if screenheight and screenwidth are clientside (which is logical), shouldn't this be working? " showimg(1, "event_icon.gif", 30, 30); " well it isnt xD |
You need
HTML Code:
changeimgvis(1, 1); |
I can't get showimg() to work serverside at all, for some reason. Even with changeimgvis().
|
Your problem is that you're displaying the image on screen coordinates divided by half, which in 800x600 would be at x400 and y300, which is outside the level boundaries (64x64). If you're on a GMAP you should see the image a few levels south east :p
EDIT: I'm fairly sure showimg() works serversided in local NPCs, doubt it will work when done in a wNPC though. |
So it won't work serversided in WNPCs..
mhmkay, thanks to everyone that answered :D |
Quote:
|
You don't have to do everything serverside. You could set a string serverside and check clientside to see if its true and if it is, it could show the image.
|
that's exactly what I'm doing now :D
|
| All times are GMT +2. The time now is 03:02 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.