SA-MP Forums Archive
Help Moving Object - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help Moving Object (/showthread.php?tid=200948)



Help Moving Object - Jack- - 19.12.2010

I get this error
C:\Users\Jack\Documents\Ascendence Documents\GTA SAMP SERVER\sdoor.pwn(10) : error 029: invalid expression, assumed zero
C:\Users\Jack\Documents\Ascendence Documents\GTA SAMP SERVER\sdoor.pwn(10) : error 035: argument type mismatch (argument
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Код:
#include <a_samp>

new sdoor;

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    sdoor = CreateObject(896,2974.106445,2116.620117,8.532794,0.000000,0.000000,0.000000,);//closed
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext,"/osdoor", true) == 0)
    {
        MoveObject(sdoor, 2974.106445,2124.700683,8.532794, 1.500000);
        return 1;
    }
    if(strcmp(cmdtext,"/osdoor", true) == 0)
    {
        MoveObject(sdoor, 2974.106445,2116.620117,8.532794, 1.500000);
        return 1;
    }
    return 0;
}



Re: Help Moving Object - akis_tze - 19.12.2010

delete the , at the end
sdoor = CreateObject(896,2974.106445,2116.620117,8.532794, 0.000000,0.000000,0.000000);//closed