if (strcmp("/enter", cmdtext, true) == 0) { if(PlayerToPoint(5.0, playerid, -1605.6515,712.0331,13.8672)) SetPlayerPos(playerid, 246.7840,63.9002,1003.6406); SetPlayerInterior(playerid, 6); return 1; } if (strcmp("/exit", cmdtext, true) == 0) { if(PlayerToPoint(5.0, playerid, 246.7840,63.9002,1003.6406)) SetPlayerPos(playerid, -1605.6515,712.0331,13.8672); SetPlayerInterior(playerid, 0); return 1; } if (strcmp("/enter", cmdtext, true) == 0) { if(PlayerToPoint(5.0, playerid, -1606.3541,672.6132,-5.2422)) SetPlayerPos(playerid, 246.7840,63.9002,1003.6406); SetPlayerInterior(playerid, 6); return 1; } if (strcmp("/exit", cmdtext, true) == 0) { if(PlayerToPoint(5.0, playerid, 246.7840,63.9002,1003.6406)) SetPlayerPos(playerid, -1606.3541,672.6132,-5.2422); SetPlayerInterior(playerid, 0); return 1; }
-1605.6515,712.0331,13.8672))
246.7840,63.9002,1003.6406
Originally Posted by Weirdosport
You can't have 2 commands by the same name (well not if you use return 1. Try this:
EDIT: Just realised both of your exit co-ordinates are the same... |
if (strcmp(cmd, "/enter", true) == 0) { if (PlayerToPoint(playerid, 5.0, 2498.3540, -1644.1443, 13.7826)) // GroveHouse1 { SetPlayerInterior(playerid, 1); SetPlayerPos(playerid, 223.043991, 1289.259888, 1082.199951); } if (PlayerToPoint(playerid, 5.0, 3623.3540, -0644.1443, 11.7826)) // GroveHouse2 { SetPlayerInterior(playerid, 1); SetPlayerPos(playerid, 223.043991, 1289.259888, 1082.199951); } return 1; }