Skydive
#1

pawn Код:
CMD:skydrive(playerid)
{
            if (UserFile[playerid][uAdmin] >= 2)
            {
                GetPlayerPos(playerid, rx, ry, rz);
                {
                    GivePlayerWeapon(playerid, 46, 0);
                    SetPlayerPos(playerid,rx, ry, rz+1500);
                    SendClientMessage(playerid, COLOR_WHITE, "GO!! GO!! GO!!");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
            }
        }
        return 1;
}
I get a error on
pawn Код:
SetPlayerPos(playerid,rx, ry, rz+1500);
Reply
#2

what error?
Reply
#3

pawn Код:
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(1398) : error 017: undefined symbol "rx"
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(1401) : error 017: undefined symbol "rx"
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(1410) : error 010: invalid function or declaration
pawn Код:
CMD:skydrive(playerid)
{
            if (UserFile[playerid][uAdmin] >= 2)
            {
                GetPlayerPos(playerid, rx, ry, rz);//1398
                {
                    GivePlayerWeapon(playerid, 46, 0);
                    SetPlayerPos(playerid,rx, ry, rz+1500);//1401
                    SendClientMessage(playerid, COLOR_WHITE, "GO!! GO!! GO!!");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
            }
        }
        return 1;//1410
}
Reply
#4

Small Bump
Reply
#5

pawn Код:
CMD:skydrive(playerid)
{
    if (UserFile[playerid][uAdmin] >= 2)
    {
        new Float:Pos[4];
        GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
        {
           GivePlayerWeapon(playerid, 46, 0);
           SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2] +1500);
           SendClientMessage(playerid, COLOR_WHITE, "GO!! GO!! GO!!");
           return 1;
        }
    }
    else return SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)