Changing scripts id
#3

So if I understand u correctly, I have a votekick fs that is not working with others. This is the code
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
    {
            if(!strcmp("/votekick", cmdtext, true))
            {
                    if(IsVoteKickStarted == true) return SendClientMessage(playerid, COLOR_ERROR,"[ERROR:] {BBBBBB}A votekick has been already started. Wait until it finish to ask for a new one");
                    ShowPlayerDialog(playerid, DIALOG_VOTEKICK, DIALOG_STYLE_INPUT, "{C14124}V{BBBBBB}otekick", "{BBBBBB}Type player's {C14124}ID{BBBBBB} or {C14124}Nick{BBBBBB} you want to votekick.", "VoteKick", "Cancel");
                    return 1;
            }
            return 1;
    }
Change that to

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
    {
            if(!strcmp("/votekick", cmdtext, true))
            {
                    if(IsVoteKickStarted == true) return SendClientMessage(playerid, COLOR_ERROR,"[ERROR:] {BBBBBB}A votekick has been already started. Wait until it finish to ask for a new one");
                    ShowPlayerDialog(playerid, DIALOG_VOTEKICK, DIALOG_STYLE_INPUT, "{C14124}V{BBBBBB}otekick", "{BBBBBB}Type player's {C14124}ID{BBBBBB} or {C14124}Nick{BBBBBB} you want to votekick.", "VoteKick", "Cancel");
                    return 1;
            }
            return 0;
    }
And then it will work?
Reply


Messages In This Thread
Changing scripts id - by ColdIce - 24.05.2011, 23:46
Re: Changing scripts id - by [DM]Kane - 25.05.2011, 04:42
Re: Changing scripts id - by ColdIce - 25.05.2011, 23:34
Re: Changing scripts id - by [DM]Kane - 26.05.2011, 14:02
Re: Changing scripts id - by DRIFT_HUNTER - 26.05.2011, 14:30
Re: Changing scripts id - by Babul - 26.05.2011, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)