Quote:
Originally Posted by cbk1994
PHP Code:
triggerserver("dropWep",dx,dy,wep,player.weapons[wepid].image);
Do you know something I don't?
I recall
PHP Code:
triggerserver( "gui", [...] );
triggerserver( "weapon", [...] );
|
Oops!
Quote:
Originally Posted by Stryke
Solved. The problem was I was supposed to access the image of the player's weapon on the clientside, and i was trying to access it off the serverside. Thanks guys!
|
Heh, I'll just point out... if you're having problems like this,
debug it. If you ever have a problem, start echoing crap that you suspect is the culprit. In this case, the image isn't setting? Most logical deduction would be that the variable you're assigning the image name to isn't correct. Thus, echo the variable you're using to set the image name. If it IS correct... then come here because something isn't right. If it's null, then you've messed up somewhere else when trying to set it. Go back and think hard and try to figure out what. Debugging is crucial and can most likely make you realize it was a simple problem that you could have caught a lot earlier on your own.