\b;Instrução \c;build\n;
The instruction \c;build();\n; instructs the bot to build a building of a given \l;category\u cbot\category;.

\b;Uso básico
Here is a program that looks for the nearest \l;titanium cube\u object\titan;, approaches it, and builds a \l;bot factory\u object\factory;.
\c;
\s; \l;objeto\u cbot\object; item = \l;radar\u cbot\radar;(\l;Titanium\u object\titan;);
\s; \l;goto\u cbot\goto;(item.position);
\s; build(\l;BotFactory\u object\factory;);
\n;
\b;Para especialistas
Sintaxe:
\s;\c;build ( categoria );\n;

Constructs a building using a titanium cube in front of the \l;builder\u object\botbr;.

\t;categoria: \c;\l;int\u cbot\int;\n;
\l;Categoria\u cbot\category; de um edifício.

\t;Valor de retorno: \c;\l;int\u cbot\int;\n;
Normalmente um erro para o programa. Você pode prevenir o programa de parar em erros usando a instrução \c;\l;errmode\u cbot\errmode;(0)\n;. Um valor diferente de zero é retornado por \c;build()\n; se um erro ocorrer.
\c;== 0 \n;Construído com sucesso
\c;!= 0 \n;Impossível construir (por exemplo, o cubo de titâno mais próximo está muito longe ou o edifício especificado não está disponível na missão)

\t;Veja também
\c;\l;canbuild\u cbot\canbuild;\n;, \c;\l;buildingenabled\u cbot\buildingenabled;\n;.
\l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;.
