23.01.2014, 09:25
hello guys , i made my enter/exit commands and i have some errors when i /enter ammunation:

I found that:

My Code :
what is wrong then??
Notable: when I delete the 24/7 code it work good

I found that:

My Code :
Код:
CMD:enter(playerid, params[])
{
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1368.8760,-1279.8350,13.5469))
SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625); //ammunation
SetPlayerInterior(playerid, 1);
}
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1833.7809,-1842.6556,13.5781))
SetPlayerPos(playerid, 6.091179,-29.271898,1003.549438); //24/7
SetPlayerInterior(playerid,10);
}
return 1;
}
CMD:exit(playerid, params[])
{
{
if(IsPlayerInRangeOfPoint(playerid, 5, 286.148986,-40.644397,1001.515625))
SetPlayerPos(playerid, 1368.8760,-1279.8350,13.5469);//ammunation
SetPlayerInterior(playerid, 0);
}
{
if (IsPlayerInRangeOfPoint(playerid, 5,6.091179,-29.271898,1003.549438))
SetPlayerPos(playerid, 1833.7809,-1842.6556,13.5781); //24/7
SetPlayerInterior(playerid, 0);
}
return 1;
Notable: when I delete the 24/7 code it work good


