Raised This Month: $ Target: $400
 0% 

[ANY] !COMMAND eater


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Plugin ID:
6809
Plugin Version:
1.18
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    7 
    Plugin Description:
    Allows to accept commands entered in chat in uppercase or cyrillic
    Old 02-15-2020 , 05:13   Re: [ANY] !COMMAND eater
    Reply With Quote #1

    PHP Code:
    if ( !(sLine[0] == 's' && sLine[1] == 'm' && sLine[2] == '_') ) // Line 284 
    Why not just use strncmp to check if the first 3 characters contain "sm_"?

    PHP Code:
    if ( strncmpsLine"sm_"3false ) != // This also allows you to ignore case sensitivity. 
    Same with:

    PHP Code:
    if ( !(name[0] == 's' && name[1] == 'm' && name[2] == '_') ) // Line 313 
    __________________

    Last edited by Psyk0tik; 02-15-2020 at 05:16.
    Psyk0tik is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 22:20.


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