/exit don't work -
Frosty_LV - 01.07.2012
Hello!
I compiled and run and all was good, but when I went ingame, after typing /exit nothing happened...
Код:
if (strcmp("/exit", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,3.0, 377.1972,-192.5130,1002.5086)) //Donuts Shop
SetPlayerPos(playerid, 1037.9946,-1339.8110,13.7266);
if(IsPlayerInRangeOfPoint(playerid,3.0,1546.6072,-1366.2124,326.2109)) //Parachute
SetPlayerPos(playerid, 1569.7756,-1334.0330,16.4844);
if(IsPlayerInRangeOfPoint(playerid,3.0,238.8796,139.4095,1004.2648)) //FBI
SetPlayerPos(playerid,1778.0828,-1664.6692,14.4355);
Re: /exit don't work -
WagnerPM - 01.07.2012
pawn Код:
if (strcmp("/exit", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,3.0, 377.1972,-192.5130,1002.5086)) //Donuts Shop
{ SetPlayerPos(playerid, 1037.9946,-1339.8110,13.7266); }
if(IsPlayerInRangeOfPoint(playerid,3.0,1546.6072,-1366.2124,326.2109)) //Parachute
{ SetPlayerPos(playerid, 1569.7756,-1334.0330,16.4844); }
if(IsPlayerInRangeOfPoint(playerid,3.0,238.8796,139.4095,1004.2648)) //FBI
{ SetPlayerPos(playerid,1778.0828,-1664.6692,14.4355); }
return 1;
}
Re: /exit don't work -
Frosty_LV - 01.07.2012
Nothing changed
Re: /exit don't work -
.EnjatsRed. - 01.07.2012
PHP код:
if(strcmp(cmd, "/exit", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,3.0, 377.1972,-192.5130,1002.5086)) //Donuts Shop
{
SetPlayerPos(playerid, 1037.9946,-1339.8110,13.7266);
}
if(IsPlayerInRangeOfPoint(playerid,3.0,1546.6072,-1366.2124,326.2109)) //Parachute
{
SetPlayerPos(playerid, 1569.7756,-1334.0330,16.4844);
}
if(IsPlayerInRangeOfPoint(playerid,3.0,238.8796,139.4095,1004.2648)) //FBI
{
SetPlayerPos(playerid,1778.0828,-1664.6692,14.4355);
}
return 1;
}
Re: /exit don't work -
Frosty_LV - 01.07.2012
No result!
AW: /exit don't work -
LeOsk - 01.07.2012
Код:
if(strcmp(cmdtext, "/exit", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,3.0, 377.1972,-192.5130,1002.5086)) //Donuts Shop
{
SetPlayerPos(playerid, 1037.9946,-1339.8110,13.7266);
}
if(IsPlayerInRangeOfPoint(playerid,3.0,1546.6072,-1366.2124,326.2109)) //Parachute
{
SetPlayerPos(playerid, 1569.7756,-1334.0330,16.4844);
}
if(IsPlayerInRangeOfPoint(playerid,3.0,238.8796,139.4095,1004.2648)) //FBI
{
SetPlayerPos(playerid,1778.0828,-1664.6692,14.4355);
}
return 1;
}
Re: /exit don't work -
[KHK]Khalid - 01.07.2012
Maybe you are NOT in range of any of these points
pawn Код:
// This
377.1972,-192.5130,1002.5086
// this
1546.6072,-1366.2124,326.2109
// and this
238.8796,139.4095,1004.2648
Re: /exit don't work -
Frosty_LV - 01.07.2012
Yeah, all these points are right ones! Nothing still helps :S
Re: /exit don't work -
[KHK]Khalid - 01.07.2012
Well, use this command
pawn Код:
if (strcmp("/exit", cmdtext, true) == 0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
printf("X: %f | Y: %f | Z: %f", x, y, z);
if(IsPlayerInRangeOfPoint(playerid,3.0, 377.1972,-192.5130,1002.5086)) //Donuts Shop
SetPlayerPos(playerid, 1037.9946,-1339.8110,13.7266);
if(IsPlayerInRangeOfPoint(playerid,3.0,1546.6072,-1366.2124,326.2109)) //Parachute
SetPlayerPos(playerid, 1569.7756,-1334.0330,16.4844);
if(IsPlayerInRangeOfPoint(playerid,3.0,238.8796,139.4095,1004.2648)) //FBI
SetPlayerPos(playerid,1778.0828,-1664.6692,14.4355);
else
{
SendClientMessage(playerid, -1, "You are not at any events!");
}
return 1;
}
and tell me the result of the prints also tell me if you get the message (You are not at any events!).
Re: /exit don't work -
Frosty_LV - 02.07.2012
Sry for late answer, it doesnt tell me anything when I go ingame and type /exit. Nothing still happens.