Thread: CharToLower()
View Single Post
Author Message
Dakex
Junior Member
Join Date: Mar 2019
Old 03-19-2019 , 12:37   CharToLower()
Reply With Quote #1

Hi guys. I need help with this code:

PHP Code:
public Action OnClientCommand(int clientint args)
{
    
char cmd[16];
    
GetCmdArg(0cmdsizeof(cmd));
    
    if (
StrEqual(CharToLower(cmd), "help"))
    {
        return 
Plugin_Handled;
    }
    
    return 
Plugin_Continue;

This code return error: error 035: argument type mismatch (argument 1)
Why is
PHP Code:
if (StrEqual(CharToLower(cmd), "help")) 
not working? or how to use it?
Dakex is offline