Sorry my noobish.
#8

Quote:
Originally Posted by RaFsTar
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
Should have return 1;

e.g:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
//STUFF

return 1;
}
There is no difference...return 1 just shows the player command has been found. If he write /help and there is no command called /help it will still show that the command has been found.

That's why he should return 0; because it will send "SERVER: Unknown command." if there is no such command...
Reply


Messages In This Thread
Sorry my noobish. - by Hot - 06.09.2009, 22:13
Re: Sorry my noobish. - by CJ101 - 06.09.2009, 22:16
Re: Sorry my noobish. - by Hot - 06.09.2009, 22:18
Re: Sorry my noobish. - by RaFsTar - 06.09.2009, 22:24
Re: Sorry my noobish. - by [eLg]Timmy - 06.09.2009, 22:25
Re: Sorry my noobish. - by HuRRiCaNe - 06.09.2009, 22:42
Re: Sorry my noobish. - by RaFsTar - 06.09.2009, 22:45
Re: Sorry my noobish. - by [eLg]Timmy - 06.09.2009, 22:58

Forum Jump:


Users browsing this thread: 4 Guest(s)