Help with /duty command
#1

Help please.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/duty", true))
    {
        if (IsPlayerLAdmin(playerid)
        {
        new message[256], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid,name,sizeof(name));
        format(message,sizeof(message),"%s is not on ~r~Duty!",name);
        GameTextForAll(playerid,message,10000,6);
        return 1;
        }
    }
    return 1;

    if(!strcmp(cmdtext, "/para", true))
    {
    SendClientMessage(playerid,COLOR_RED, "Enjoy BASE Jumping!");
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    GivePlayerWeapon(playerid, 46, 500);
    return 1;
    }
Errors:

Код:
C:\Users\Marko\Desktop\Base Jmping server\gamemodes\onlybase.pwn(542) : error 001: expected token: ")", but found "{"
C:\Users\Marko\Desktop\Base Jmping server\gamemodes\onlybase.pwn(546) : error 035: argument type mismatch (argument 1)
C:\Users\Marko\Desktop\Base Jmping server\gamemodes\onlybase.pwn(552) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Thanks for help.
Reply


Messages In This Thread
Help with /duty command - by Markx - 14.02.2011, 14:35
Re: Help with /duty command - by _Tommy - 14.02.2011, 14:42
Re: Help with /duty command - by SkizzoTrick - 14.02.2011, 14:54
Re: Help with /duty command - by Markx - 15.02.2011, 13:18
Re: Help with /duty command - by t.fp - 15.02.2011, 13:26
Re: Help with /duty command - by Markx - 15.02.2011, 13:28
Re: Help with /duty command - by t.fp - 15.02.2011, 13:30
Re: Help with /duty command - by Markx - 15.02.2011, 13:31
Re: Help with /duty command - by t.fp - 15.02.2011, 13:32

Forum Jump:


Users browsing this thread: 1 Guest(s)