DM error
#6

Quote:
Originally Posted by [Hunter
]
Hey im trying to Block commands when in DM for example
EDIT: Ok i almost got it to work but now...

pawn Код:
if(strcmp(cmdtext, "/stuntbonus",true)==0) {
EnableStuntBonusForPlayer(playerid, 1);
SendClientMessage(playerid, COLOR_AQUA,"Stunt Bonus Enabled !");
}
return 1;
}
////////////////////////////////////////////////////////////////////////////////////
else
{
SendClientMessage(playerid, COLOR_RED, "You Are in a DM, type /kill or /ifarted to exit !");
}
return 1;
}


but i get this
pawn Код:
C:\Users\Compaq_Administrator\Desktop\All Files\0.2x\gamemodes\Test3.pwn(3329) : error 010: invalid function or declaration
C:\Users\Compaq_Administrator\Desktop\All Files\0.2x\gamemodes\Test3.pwn(3333) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
try this:

pawn Код:
if(strcmp(cmdtext, "/stuntbonus",true)==0)
    {
        EnableStuntBonusForPlayer(playerid, 1);
        SendClientMessage(playerid, COLOR_AQUA,"Stunt Bonus Enabled !");
        return 1;
    }
////////////////////////////////////////////////////////////////////////////////////
    else
    {
        SendClientMessage(playerid, COLOR_RED, "You Are in a DM, type /kill or /ifarted to exit !");
        return 1;
    }
Reply


Messages In This Thread
DM error - by ReV. - 08.03.2009, 03:56
Re: DM error - by hazdog - 08.03.2009, 05:33
Re: DM error - by ReV. - 08.03.2009, 05:36
Re: DM error - by ReV. - 08.03.2009, 05:50
Re: DM error - by ReV. - 08.03.2009, 16:57
Re: DM error - by Think - 08.03.2009, 17:20
Re: DM error - by ReV. - 08.03.2009, 17:41
Re: DM error - by ReV. - 08.03.2009, 18:24
Re: DM error - by ICECOLDKILLAK8 - 08.03.2009, 18:42
Re: DM error - by ReV. - 08.03.2009, 19:12

Forum Jump:


Users browsing this thread: 1 Guest(s)