how do i convert MoveObject from 0.3c to 0.3d
#1

I see this https://sampwiki.blast.hk/wiki/MoveObject but that doesn't help me.
for example i ave this here

pawn Код:
if (strcmp("/dgate", cmdtext, true, 10) == 0)
    {
        if(pInfo[playerid][pDonator] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not donator.");
        if(dGateOpened == 0)
        {
            F_MoveObject(dgate,-2864.9616699219, 460.51702880859, 4.5343232154846, 2.0, -1000.0, -1000.0, -1000.0);
            SendClientMessage(playerid, COLOR_GREEN, "Donator Gate: Opened.");
            dGateOpened = 1;
        }
        else
        {
            F_MoveObject(dgate,-2864.921875, 468.37530517578, 4.5343232154846, 2.0);
            SendClientMessage(playerid, COLOR_RED, "Donator Gate: Closed.");
            dGateOpened = 0;
        }
        return 1;
    }
what is wrong? i did what that link told me. sorry if it's dumb question because i did not script really long time

Код:
C:\Users\Selman.Gunes\Documents\SA-MP Scripting\Selman10's Script\gamemodes\[UF]SF-TDM.pwn(3599) : warning 202: number of arguments does not match definition
C:\Users\Selman.Gunes\Documents\SA-MP Scripting\Selman10's Script\gamemodes\[UF]SF-TDM.pwn(3599) : warning 202: number of arguments does not match definition
C:\Users\Selman.Gunes\Documents\SA-MP Scripting\Selman10's Script\gamemodes\[UF]SF-TDM.pwn(3599) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
Reply
#2

Check these parameters.
pawn Код:
F_MoveObject(dgate,-2864.9616699219, 460.51702880859, 4.5343232154846, 2.0, -1000.0, -1000.0, -1000.0);
F_MoveObject(dgate,-2864.9616699219, 460.51702880859, 4.5343232154846, 2.0);
Reply
#3

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Check these parameters.
pawn Код:
F_MoveObject(dgate,-2864.9616699219, 460.51702880859, 4.5343232154846, 2.0, -1000.0, -1000.0, -1000.0);
F_MoveObject(dgate,-2864.9616699219, 460.51702880859, 4.5343232154846, 2.0);
yes but i don't see what is wrong?! :$ i feel so stupid now... i know the answer might be really simple but ... some one please help
Reply
#4

PHP код:
F_MoveObject(dgate,-2864.9616699219460.517028808594.53432321548462.0, -1000.0, -1000.0, -1000.0); 
Change that to:
PHP код:
F_MoveObject(dgate,-2864.9616699219460.517028808594.53432321548462.0); 
Cause MoveObject changed, now its just MoveObject(objectid, X, Y, Z, speed);
Reply
#5

Quote:
Originally Posted by Andy_McKinley
Посмотреть сообщение
I see this https://sampwiki.blast.hk/wiki/MoveObject but that doesn't help me.
for example i ave this here

pawn Код:
if (strcmp("/dgate", cmdtext, true, 10) == 0)
    {
        if(pInfo[playerid][pDonator] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not donator.");
        if(dGateOpened == 0)
        {
            F_MoveObject(dgate,-2864.9616699219, 460.51702880859, 4.5343232154846, 2.0, -1000.0, -1000.0, -1000.0);
            SendClientMessage(playerid, COLOR_GREEN, "Donator Gate: Opened.");
            dGateOpened = 1;
        }
        else
        {
            F_MoveObject(dgate,-2864.921875, 468.37530517578, 4.5343232154846, 2.0);
            SendClientMessage(playerid, COLOR_RED, "Donator Gate: Closed.");
            dGateOpened = 0;
        }
        return 1;
    }
what is wrong? i did what that link told me. sorry if it's dumb question because i did not script really long time

Код:
C:\Users\Selman.Gunes\Documents\SA-MP Scripting\Selman10's Script\gamemodes\[UF]SF-TDM.pwn(3599) : warning 202: number of arguments does not match definition
C:\Users\Selman.Gunes\Documents\SA-MP Scripting\Selman10's Script\gamemodes\[UF]SF-TDM.pwn(3599) : warning 202: number of arguments does not match definition
C:\Users\Selman.Gunes\Documents\SA-MP Scripting\Selman10's Script\gamemodes\[UF]SF-TDM.pwn(3599) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
Use this Code

Код:
if (strcmp("/dgate", cmdtext, true, 10) == 0)
    {
        if(pInfo[playerid][pDonator] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not donator.");
        if(dGateOpened == 0)
        {
            MoveDynamicObject(dgate, -2864.9616699219, 460.51702880859, 4.5343232154846, 2.0, -1000.0, -1000.0, -1000.0);
            SendClientMessage(playerid, COLOR_GREEN, "Donator Gate: Opened.");
            dGateOpened = 1;
        }
        else
        {
            MoveDynamicObject(dgate, -2864.921875, 468.37530517578, 4.5343232154846, 2.0);
            SendClientMessage(playerid, COLOR_RED, "Donator Gate: Closed.");
            dGateOpened = 0;
        }
        return 1;
    }
Reply
#6

If my first cmd does not work try this

Код:
if (strcmp("/dgate", cmdtext, true, 10) == 0)
    {
        if(pInfo[playerid][pDonator] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not donator.");
        if(dGateOpened == 0)
        {
            F_MoveObject(dgate, -2864.9616699219, 460.51702880859, 4.5343232154846, 2.0);
            SendClientMessage(playerid, COLOR_GREEN, "Donator Gate: Opened.");
            dGateOpened = 1;
        }
        else
        {
            F_MoveObject(dgate, -2864.921875, 468.37530517578, 4.5343232154846, 2.0);
            SendClientMessage(playerid, COLOR_RED, "Donator Gate: Closed.");
            dGateOpened = 0;
        }
        return 1;
    }
Reply
#7

i just want to tell that i added those , -1000.0 because the gates rotate...

this is my actual script:
pawn Код:
if (strcmp("/dgate", cmdtext, true, 10) == 0)
    {
        if(pInfo[playerid][pDonator] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not donator.");
        if(dGateOpened == 0)
        {
            F_MoveObject(dgate, -2864.9616699219, 460.51702880859, 4.5343232154846, 2.0);
            SendClientMessage(playerid, COLOR_GREEN, "Donator Gate: Opened.");
            dGateOpened = 1;
        }
        else
        {
            F_MoveObject(dgate, -2864.921875, 468.37530517578, 4.5343232154846, 2.0);
            SendClientMessage(playerid, COLOR_RED, "Donator Gate: Closed.");
            dGateOpened = 0;
        }
        return 1;
    }
but the gates are rotating when i open them...
Reply
#8

help please. i posted above how my normal script is. i did update F_streamer but i don't know when i go ingame and use /dgate for example, the gates rotate. everyone gives me a line how to do it but it doesn't work please help
Reply
#9

help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)