Error message?
#7

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
    {
    if(
strcmp("/kill"cmdtexttrue10) == 0)
    
SetPlayerHealth (playerid0);
    
SendClientMessage (playerid0x4D34B3FF"You have killed yourself.");
    return 
1;
    }
    {
    if (
strcmp("/heal"cmdtexttrue10) == 0)
    
SetPlayerHealth (playerid100);
    
SendClientMessage (playerid0x4D34B3FF"You have healed yourself.");
    return 
1;
    } 
Added another code ontop of the /heal. And I didn't get any error of the /kill command Wierd.
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: 4 Guest(s)