30.03.2016, 22:11
You forgot to add a ")" to
You also forgot to put "return 0;" in OnPlayerCommandText(). Use this instead:
In Floats and math overall, there is no need to display "0" if there's not a number afterwars equal to not "0".
is the same as
Код:
MoveObject(gate,1545.1000000,-1627.6000000,14.1000000,3; //See below code MoveObject(gate,1545.1000000,-1627.6000000,14.1000000,3);
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/openthegate",true)== 0)
{
MoveObject(gate,1545.1000000,-1620.1000000,14.1000000,3);
return 1;
}
if(strcmp(cmdtext,"/closethegate",true)== 0)
{
MoveObject(gate,1545.1000000,-1627.6000000,14.1000000,3);
return 1;
}
return 0;
}
Код:
1545.1000000
Код:
1545.1