How to create a /help command?
#10

fix:
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
if (
strcmp("/killme"cmdtexttrue10) == 0)
{
SetPlayerHealth(playerid0);
return 
1;
}
if(!
strcmp(cmdtext,"/help",true))
{
SendClientMessage(playerid,0xFFFFFFAA,"Help command!");
return 
1;
}

put a } after an end of command,public,etc...
u didn't put } on the end of /killme
Reply


Messages In This Thread
How to create a /help command? - by Xtreme4ever - 10.07.2010, 14:16
Re: How to create a /help command? - by OverSwap - 10.07.2010, 14:20
Re: How to create a /help command? - by Xtreme4ever - 10.07.2010, 14:22
Re: How to create a /help command? - by OverSwap - 10.07.2010, 14:24
Re: How to create a /help command? - by Xtreme4ever - 10.07.2010, 14:26
Re: How to create a /help command? - by Xtreme4ever - 10.07.2010, 14:26
Re: How to create a /help command? - by OverSwap - 10.07.2010, 14:29
Re: How to create a /help command? - by Xtreme4ever - 10.07.2010, 14:29
Re: How to create a /help command? - by Xtreme4ever - 10.07.2010, 14:30
Re: How to create a /help command? - by OverSwap - 10.07.2010, 14:36

Forum Jump:


Users browsing this thread: 3 Guest(s)