Onplayercommandtext
#1

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/secret", cmdtext, true, 10) == 0)
    {
    OnPlayerCommandText(playerid,"secret");
    OnPlayerCommandText(playerid,"secret");
        return 1;
    }
    return 0;
}
Ok im making a filter script..
I have this just like this..
No errors..
Untill i want to make another command like /secret.
I use secret due to people stealing ideas..

Please someone tell me how to add another command under this or like this without getting this
Error:
pawn Код:
C:\Users\Darian.Jennifer-PC\Desktop\pawno\xx\new.pwn(95) : warning 217: loose indentation
C:\Users\Darian.Jennifer-PC\Desktop\pawno\xx\new.pwn(101) : error 021: symbol already defined: "OnPlayerCommandText"
C:\Users\Darian.Jennifer-PC\Desktop\pawno\xx\new.pwn(106) : warning 217: loose indentation
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Then it said Unable to compile ****** - Name


pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/pg", cmdtext, true, 10) == 0)
    {
    OnPlayerCommandText(playerid,"/me Unzips dufflebag. Takes a weapon out of his dufflebag and Flicks Safety OFF");
    OnPlayerCommandText(playerid,"/do **ZIPS**");
        return 1;
    }

    return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/pg", cmdtext, true, 10) == 0)
    {
    OnPlayerCommandText(playerid,"/me Unzips dufflebag. Takes a weapon out of his dufflebag and Flicks Safety OFF");
    OnPlayerCommandText(playerid,"/do **ZIPS**");
        return 1;
    }

    return 0;
}

Someone tell me how to do this?
Reply


Messages In This Thread
Onplayercommandtext - by Bam23 - 27.03.2011, 16:52
Re: Onplayercommandtext - by Stigg - 27.03.2011, 16:58
Re: Onplayercommandtext - by Bam23 - 27.03.2011, 17:09
Re: Onplayercommandtext - by Stigg - 27.03.2011, 17:11
Re: Onplayercommandtext - by mikeeee - 01.12.2011, 22:07
Re: Onplayercommandtext - by Rob_Maate - 01.12.2011, 23:43
Re: Onplayercommandtext - by Thresholdold - 01.12.2011, 23:50
Re: Onplayercommandtext - by grand.Theft.Otto - 02.12.2011, 01:48
Re: Onplayercommandtext - by ProdrifterX - 02.12.2011, 07:25
Re: Onplayercommandtext - by Rudy_ - 02.12.2011, 07:29

Forum Jump:


Users browsing this thread: 1 Guest(s)