27.07.2009, 03:02
The difrence between return 1 and return 0:
Return 1; (so u can add more script on to it for e.g.
Return 0; ends that Public (cmd)
thats what it dose i think
im not to sure about the other on lol
hope it helps not much though i guess
Return 1; (so u can add more script on to it for e.g.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/commands", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xAA3333A,"find your command stuff here");
return 1;
}
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xAA3333A,"Text");
SendClientMessage(playerid,0xAA3333A,"Text");
SendClientMessage(playerid,0xAA3333A,"Text");
return 1;
}
return 0;
thats what it dose i think
im not to sure about the other on lol
hope it helps not much though i guess

