11.07.2011, 13:25
How I can use this on DCMD?
if(newkeys & KEY_SECONDARY_ATTACK) dcmd_exit(playerid, "");
if(newkeys & KEY_SECONDARY_ATTACK) dcmd_enter(playerid, "");
error 017: undefined symbol "dcmd_exit" error 017: undefined symbol "dcmd_enter"
command(enter, playerid, params[]) { if (PlayerToPoint(4, playerid,2398.0857,133.0009,28.3789)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2397.8286,130.2117,70.8653); } if (PlayerToPoint(4, playerid,1292.6390,380.1429,21.4683)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1291.5057,382.6552,63.9558); } return 1; } command(exit, playerid, params[]) { if (PlayerToPoint(4, playerid,2397.8286,130.2117,70.8653)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2398.0857,133.0009,28.3789); } if (PlayerToPoint(4, playerid,1291.5057,382.6552,63.9558)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1292.6390,380.1429,21.4683); } return 1; }
if(newkeys & KEY_SECONDARY_ATTACK) command(exit, playerid, "");
if(newkeys & KEY_SECONDARY_ATTACK) command(enter, playerid, "");
if(newkeys & KEY_SECONDARY_ATTACK) cmd_exit(playerid, "");
if(newkeys & KEY_SECONDARY_ATTACK) cmd_enter(playerid, "");
if(newkeys & KEY_SECONDARY_ATTACK)
{
//All in one ^^
if (PlayerToPoint(4, playerid,2397.8286,130.2117,70.8653))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2398.0857,133.0009,28.3789);
}
if (PlayerToPoint(4, playerid,1291.5057,382.6552,63.9558))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1292.6390,380.1429,21.4683);
}
if (PlayerToPoint(4, playerid,2398.0857,133.0009,28.3789))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2397.8286,130.2117,70.8653);
}
if (PlayerToPoint(4, playerid,1292.6390,380.1429,21.4683))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1291.5057,382.6552,63.9558);
}
return 1;
}