SA-MP Forums Archive
gate small prob rep + - 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)
+--- Thread: gate small prob rep + (/showthread.php?tid=340027)



gate small prob rep + - oscar7610 - 05.05.2012

pawn Код:
if (strcmp("/opengate", cmdtext, true) == 0)
    {
        MoveObject(islandgate, CreateObject(2082.10009766, 963.50000000, 11.39999962,1);
        return 1;
    }
    if (strcmp("/closegate", cmdtext, true) == 0)
    {
        MoveObject(islandgate, CreateObject(2082.10009766, 973.00000000, 11.39999962,1);
        return 1;
    }
pawn Код:
C:\Users\Oscar\Desktop\*\Gangwarz\gamemodes\backup.pwn(2207) : warning 213: tag mismatch
C:\Users\Oscar\Desktop\*\Gangwarz\gamemodes\backup.pwn(2207) : warning 202: number of arguments does not match definition
C:\Users\Oscar\Desktop\*\Gangwarz\gamemodes\backup.pwn(2207) : warning 202: number of arguments does not match definition
C:\Users\Oscar\Desktop\*\Gangwarz\gamemodes\backup.pwn(2207) : warning 202: number of arguments does not match definition
C:\Users\Oscar\Desktop\*\Gangwarz\gamemodes\backup.pwn(2207) : error 001: expected token: ",", but found ";"
C:\Users\Oscar\Desktop\*\Gangwarz\gamemodes\backup.pwn(2212) : warning 213: tag mismatch
C:\Users\Oscar\Desktop\*\Gangwarz\gamemodes\backup.pwn(2212) : warning 202: number of arguments does not match definition
C:\Users\Oscar\Desktop\*\Gangwarz\gamemodes\backup.pwn(2212) : warning 202: number of arguments does not match definition
C:\Users\Oscar\Desktop\*\Gangwarz\gamemodes\backup.pwn(2212) : warning 202: number of arguments does not match definition
C:\Users\Oscar\Desktop\*\Gangwarz\gamemodes\backup.pwn(2212) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.



Re: gate small prob rep + - SuperViper - 05.05.2012

pawn Код:
if (strcmp("/opengate", cmdtext, true) == 0)
    {
        MoveObject(islandgate, 2082.10009766, 963.50000000, 11.39999962,1);
        return 1;
    }
    if (strcmp("/closegate", cmdtext, true) == 0)
    {
        MoveObject(islandgate, 2082.10009766, 973.00000000, 11.39999962,1);
        return 1;
    }
and you need to make sure that you have

pawn Код:
new islandgate;
near the top of your script and your CreateObject line should look something like this:

pawn Код:
islandgate = CreateObject( ... );



Re: gate small prob rep + - AlTy - 05.05.2012

You cant move object to create object lol

Use the coords only, without createobject


Re: gate small prob rep + - oscar7610 - 05.05.2012

pawn Код:
C:\Users\Oscar\Desktop\*\Gangwarz\gamemodes\backup.pwn(2207) : error 001: expected token: ",", but found ";"
C:\Users\Oscar\Desktop\*\Gangwarz\gamemodes\backup.pwn(2212) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.



Re: gate small prob rep + - oscar7610 - 05.05.2012

fixed reped all thanks.