AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Error: Argument type mismatch (argument 2) on line * (https://forums.alliedmods.net/showthread.php?t=154006)

fmfs10 04-01-2011 17:14

Error: Argument type mismatch (argument 2) on line *
 
In ANY plugin I try to do this, I receive this message... Why?

PHP Code:

#include <fvault>

//function...
new SZ_Name32 ]
get_user_nameIndexSZ_Name31 )
        
fvault_set_dataVaultstrtolower(SZ_Name), SZ_Password 


ConnorMcLeod 04-01-2011 17:23

Re: Error: Argument type mismatch (argument 2) on line *
 
strtolower doesn't return the string, may be the string length, so you can't pass it in the native/stock as argument.
PHP Code:

new SZ_Name32 ]
get_user_nameIndexSZ_Name31 )
strtolower(SZ_Name)
fvault_set_dataVaultSZ_NameSZ_Password 



All times are GMT -4. The time now is 14:33.

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