return 0/1; any difference?
#3

Let's say OnPlayerCommandText
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  new pName[MAX_PLAYER_NAME];
  GetPlayerName(playerid, pName, sizeof(pName));
  
  printf("Command: %s: %s" ,pName, cmdtext);// Prints for example: Command: [NWA]Hannes: /kickme
  return 0/1; //If you return 0, it will only print for commands in this script. If you return 1, it will print for all scripts that uses commands.
}
Reply


Messages In This Thread
return 0/1; any difference? - by SiJ - 26.01.2010, 11:05
Re: return 0/1; any difference? - by kmzr - 26.01.2010, 12:31
Re: return 0/1; any difference? - by bajskorv123 - 26.01.2010, 12:56
Re: return 0/1; any difference? - by SiJ - 26.01.2010, 13:07
Re: return 0/1; any difference? - by bajskorv123 - 26.01.2010, 13:30
Re: return 0/1; any difference? - by SiJ - 26.01.2010, 13:45

Forum Jump:


Users browsing this thread: 1 Guest(s)