Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   !insertmacro: macro "FUNCTION_STRING_StrLoc" requires 0 parameter(s), passed 4 (http://forums.winamp.com/showthread.php?t=300355)

nsnb 26th November 2008 20:45

[SOLVED] macro "FUNCTION_STRING_StrLoc" requires 0 parameter(s), passed 4
 
I am trying to use the faster version of ReadCustomerData, as described in this Wiki article:

http://nsis.sourceforge.net/ReadCust...ta#Performance

I pasted the code as is and compiled... I am getting this weird error message:
Quote:

!insertmacro: macro "FUNCTION_STRING_StrLoc" requires 0 parameter(s), passed 4
I did !include "StrFunc.nsh".

I also checked StrFunc.nsh and it says that it requires 4 parameters.

Why am I getting this error message? What am I missing?

Thanks!

nsnb 26th November 2008 20:55

Ah! I found the answer in the StrFunc.txt readme:

Quote:

Every command used in install sections and functions have to be called first before and out of any sections and functions, and without parameters.


All times are GMT. The time now is 05:16.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.