Make the "no such builtin" message more descriptive
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Feb 2008 19:04:49 +0000 (19:04 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Feb 2008 19:04:49 +0000 (19:04 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8152 d7cf8633-e32d-0410-b094-e92efae38249

mvm_cmds.c
prvm_execprogram.h

index 7a5d41b..36e0b41 100644 (file)
@@ -170,7 +170,7 @@ void VM_M_callfunction(void)
                if (builtinnumber < prog->numbuiltins && prog->builtins[builtinnumber])
                        prog->builtins[builtinnumber]();
                else
-                       PRVM_ERROR("No such builtin #%i in %s", builtinnumber, PRVM_NAME);
+                       PRVM_ERROR("No such builtin #%i in %s; most likely cause: outdated engine build. Try updating!", builtinnumber, PRVM_NAME);
        }
        else if(func - prog->functions > 0)
        {
index 6b7018c..38a1385 100644 (file)
                                        if (builtinnumber < prog->numbuiltins && prog->builtins[builtinnumber])
                                                prog->builtins[builtinnumber]();
                                        else
-                                               PRVM_ERROR("No such builtin #%i in %s", builtinnumber, PRVM_NAME);
+                                               PRVM_ERROR("No such builtin #%i in %s; most likely cause: outdated engine build. Try updating!", builtinnumber, PRVM_NAME);
                                }
                                else
                                        st = prog->statements + PRVM_EnterFunction(newf);