What wrong with it?
#1

Hi
i did new LSPD HQ and the /enter bugged
pawn Код:
if(strcmp(cmd, "/enter", true) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid,2,1554.6105,-1675.4493,16.1953))
    {
        SetPlayerPos(playerid,246.7302,107.6626,1003.2188)
        SetPlayerInterior(playerid,3);
    }
    return 1;
}
it's not respond just keep stand there
Reply
#2

Maybe you put the wrong coordinates.
Try this and check If you're not on the coordinates client send you this: Yes wrong coordinates
Код:
if(strcmp(cmd, "/enter", true) == 0)
{
    if(!IsPlayerInRangeOfPoint(playerid,2,1554.6105,-1675.4493,16.1953)) return SendClientMessage(playerid, -1,"Yes wrong coordinates");
        SetPlayerPos(playerid,246.7302,107.6626,1003.2188)
        SetPlayerInterior(playerid,3);
    return 1;
}
Reply
#3

all fine with the coordnates i check it out 3 times
Reply
#4

Quote:
Originally Posted by Chris_Morrison
Посмотреть сообщение
all fine with the coordnates i check it out 3 times
Check if you already have a command /enter if you have put a different command not /enter. The code is all right.
Reply
#5

The syntax looks quite correctly to me.
Try to use a float as the second param at IsPlayerInRangeOfPoint. So use 2.0 as 2.
Reply
#6

try with zcmd
pawn Код:
CMD:enter(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid,2,1554.6105,-1675.4493,16.1953)) return SendClientMessage(playerid, -1,"Yes wrong coordinates");
        SetPlayerPos(playerid,246.7302,107.6626,1003.2188)
        SetPlayerInterior(playerid,3);
return 1;
}
Reply
#7

Quote:
Originally Posted by Gagi_Corleone
Посмотреть сообщение
Maybe you put the wrong coordinates.
Try this and check If you're not on the coordinates client send you this: Yes wrong coordinates
Код:
if(strcmp(cmd, "/enter", true) == 0)
{
    if(!IsPlayerInRangeOfPoint(playerid,2,1554.6105,-1675.4493,16.1953)) return SendClientMessage(playerid, -1,"Yes wrong coordinates");
        SetPlayerPos(playerid,246.7302,107.6626,1003.2188)
        SetPlayerInterior(playerid,3);
    return 1;
}
It's won't work
anyone else?
Reply
#8

Quote:
Originally Posted by Chris_Morrison
Посмотреть сообщение
It's won't work
anyone else?
test mine
(2 posts above this post)
Reply
#9

Quote:
Originally Posted by xkirill
Посмотреть сообщение
test mine
(2 posts above this post)
not work
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26570) : error 017: undefined symbol "enter"
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26579) : warning 225: unreachable code
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26570) : warning 203: symbol is never used: "CMD"
Reply
#10

Quote:
Originally Posted by Chris_Morrison
Посмотреть сообщение
not work
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26570) : error 017: undefined symbol "enter"
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26579) : warning 225: unreachable code
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26570) : warning 203: symbol is never used: "CMD"
download zcmd.inc
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)