how do i convert MoveObject from 0.3c to 0.3d
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)