Weird command issue
#6

Quote:
Originally Posted by Naruto_Emilio
Посмотреть сообщение
pawn Код:
if(!strcmp(cmdtext, "/b", true, 2))// Here it must be 2 cause there is not 3 words (Ex: /=> 1, b=> 2)
    {
        if(!cmdtext[2])return SendClientMessage(playerid, COLOR_ERRORRED, "USAGE: /b [ooc chat]");

        new str[128];
        GetPlayerName(playerid, str, sizeof(str));
        format(str, sizeof(str), "(( %s: %s ))", str, cmdtext[3]);
       
        ProxDetector(10.0, playerid, str, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);

        return 1;
    }
yeah but then if you have a command starting with /b like
Example
/bike the command /b will be run because you put it as
true, 2 that means anything starting with /b will be recognized as the /b command if you see what i mean correct me if im wrong
Reply


Messages In This Thread
Weird command issue - by Jonteh - 17.05.2011, 02:41
Re: Weird command issue - by Seven_of_Nine - 17.05.2011, 04:05
Re: Weird command issue - by Jonteh - 17.05.2011, 21:09
Re: Weird command issue - by park4bmx - 17.05.2011, 21:12
Re: Weird command issue - by Naruto_Emilio - 17.05.2011, 21:15
Re: Weird command issue - by park4bmx - 17.05.2011, 21:22
Re: Weird command issue - by grand.Theft.Otto - 17.05.2011, 21:57
Re: Weird command issue - by Jonteh - 17.05.2011, 22:19
Re: Weird command issue - by grand.Theft.Otto - 17.05.2011, 22:29
Re: Weird command issue - by Jonteh - 18.05.2011, 04:42

Forum Jump:


Users browsing this thread: 2 Guest(s)