View Single Post
  #5  
Old 04-20-2009, 09:37 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Inverness View Post
I think the problem is in the error message.

Clearly just do:
PHP Code:
function onActionClientSide(unused,weaps,imgs)
{
  if (
params[0] == "openinv"OpenInventory(weapsimgs);

Chompy, I'm astonished that you're avoiding the problem rather than fixing it. The problem is clearly in the error message.
Fixing it by adding a placeholder? I'd say you either stick with using the params[] array or use predefined parameters instead. (Instead of a mix, as it can become confusing when working with larger codes)
__________________
Reply With Quote