AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Error (https://forums.alliedmods.net/showthread.php?t=159891)

Artifact 06-23-2011 05:26

Error
 
Code:

Get_Prefix()  // Line 24
{  // Line 25
    new sPrefix[32]  // Line 26
    get_pcvar_string(g_prefix_cvar, sPrefix, charmax(sPrefix))  // Line 27
    return sPrefix  // Line 28
}

Error: Invalid function call, not a valid address on line 27
Warning: Expression has no effect on line 27
Error: Expected token: ";", but found ")" on line 27
Error: Invalid expression, assumed zero on line 27
Error: Too many error messages on one line on line 27

Compilation aborted.
4 Errors.
Could not locate output file C:\Program Files\AMX Mod X\amxxstudio\something.amx (compile failed).

Schwabba 06-23-2011 05:29

Re: Error
 
Quote:

Originally Posted by Artifact (Post 1494023)
charmax(sPrefix))

It's called charsmax().


All times are GMT -4. The time now is 23:25.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.