Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Can't determine parameter type?

Author
Message
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 27th Feb 2009 00:32 Edited at: 27th Feb 2009 01:24
So here's a function I've got in a plugin:



And here is my string table entry:



And for some reason if I try to compile the following code:



The compiler says it can't determine the parameter type of '2D Distance'.

I've already used float for parameters and return types in many other plugin functions and it's worked without a problem; what's wrong? I know I'm probably just missing something very stupid.

EDIT:

Nevermind, it appears that command names can't start with a number. I changed it to Distance 2D( ) and it works like a charm.

Login to post a reply

Server time is: 2024-04-19 23:16:08
Your offset time is: 2024-04-19 23:16:08