/exit don't work
#1

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);
Reply
#2

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;
    }
Reply
#3

Nothing changed
Reply
#4

PHP код:
if(strcmp(cmd"/exit"true) == 0)
{
        if(
IsPlayerInRangeOfPoint(playerid,3.0377.1972,-192.5130,1002.5086)) //Donuts Shop
        
{
            
SetPlayerPos(playerid1037.9946,-1339.8110,13.7266);
        }
        if(
IsPlayerInRangeOfPoint(playerid,3.0,1546.6072,-1366.2124,326.2109)) //Parachute
        
{
            
SetPlayerPos(playerid1569.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;

Reply
#5

No result!
Reply
#6

Код:
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;
}
Reply
#7

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
Reply
#8

Yeah, all these points are right ones! Nothing still helps :S
Reply
#9

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!).
Reply
#10

Sry for late answer, it doesnt tell me anything when I go ingame and type /exit. Nothing still happens.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)