[HELP] Command
#1

What is wrong here?

pawn Код:
if(strcmp(cmd, "/up", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
           if(PlayerToPoint(1.0,playerid,-2212.5674,643.8956,49.4456))
           {
                if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6)
                {
                    SetPlayerPos(playerid,2240.1135,648.5764,74.0790);
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "* You are not a Yakuza *");
                }
           }
        }
    }
    if(strcmp(cmd, "/down", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
           if(PlayerToPoint(1.0,playerid,-2236.0012,647.6078,74.0790))
           {
                if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6)
                {
                    SetPlayerPos(playerid,-2212.5674,643.8956,49.4456);
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "* You are not a Yakuza *");
                }
           }
        }
    }
Reply
#2

tell us what is your error..
Reply
#3

When i type the command "/up", boosts me up in than position.
Reply
#4

Quote:
Originally Posted by monster010
Посмотреть сообщение
When i type the command "/up", boosts me up in than position.
Yes sure, You are setted as pLeader and pMember, Thats why it boosts you up when you type /up.

Try putting return 1;?
Reply
#5

And how I to not not boosts up?
Reply
#6

Quote:
Originally Posted by monster010
Посмотреть сообщение
And how I to not not boosts up?
Maybe,
In your server dir>/scriptfiles/.

Cant predict, Show one of your user.ini file.

Maybe something like this

Код:
Leader = 1
Member = 1
So change it to 0, Anyway nothing related to this so if you want that all people use /up and /down.

Just remove this line.
Код:
if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6)
{
Reply
#7

SOLVED!

I have put the returns and work perfect!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)