Quote:
Originally Posted by Inverness
I think the problem is in the error message.
Clearly just do:
PHP Code:
function onActionClientSide(unused,weaps,imgs)
{
if (params[0] == "openinv") OpenInventory(weaps, imgs);
}
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)