Error message?
#8

Just replace it by this.
pawn Код:
// command /heal
if(strcmp(#/heal, cmdtext)) return SetPlayerHealth(playerid, 100),SendClientMessage(playerid, 0x4D34B3FF,#You have healed yourself.);


//command /kill

if(strcmp(#/kill, cmdtext)) return SetPlayerHealth(playerid, 0),SendClientMessage(playerid, 0x4D34B3FF,#You have killed yourself.);
it should looks like this.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(#/kill, cmdtext)) return SetPlayerHealth(playerid, 0),SendClientMessage(playerid, 0x4D34B3FF,#You have killed yourself.);
    if(strcmp(#/heal, cmdtext)) return SetPlayerHealth(playerid, 100),SendClientMessage(playerid, 0x4D34B3FF,#You have healed yourself.);
    return 0;
}
Reply


Messages In This Thread
Error message? - by daimon567 - 11.08.2012, 16:10
Re: Error message? - by CoaPsyFactor - 11.08.2012, 16:13
Re: Error message? - by daimon567 - 11.08.2012, 16:15
Re: Error message? - by CoaPsyFactor - 11.08.2012, 16:19
Re: Error message? - by Vince - 11.08.2012, 16:20
Re: Error message? - by CoaPsyFactor - 11.08.2012, 16:22
Re: Error message? - by daimon567 - 11.08.2012, 16:22
Re: Error message? - by leonardo1434 - 11.08.2012, 16:23
Re: Error message? - by daimon567 - 11.08.2012, 16:30
Re: Error message? - by daimon567 - 11.08.2012, 16:50

Forum Jump:


Users browsing this thread: 2 Guest(s)