12.09.2013, 07:38
Quote:
1. You don't have to rewrite the variables
2. This is 2d array, not single dimensional, so you need to specify which element you are using: pawn Код:
|
pawn Код:
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, EnterAndExit[0][EnterPointX], EnterAndExit[0][EnterPointY], EnterAndExit[0][EnterPointZ]))
{
SetPlayerPos(playerid, 246.8042, 63.3659, 1003.6406);
SetPlayerInterior(playerid, 6);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, EnterAndExit[1][EnterPointX], EnterAndExit[1][EnterPointY], EnterAndExit[1][EnterPointZ]))
{
SetPlayerPos(playerid, 246.8042, 63.3659, 1003.6406);
SetPlayerInterior(playerid, 6);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, EnterAndExit[2][EnterPointX], EnterAndExit[2][EnterPointY], EnterAndExit[2][EnterPointZ]))
{
SetPlayerPos(playerid, 246.8042, 63.3659, 1003.6406);
SetPlayerInterior(playerid, 6);
}
return 1;
}