gate small prob rep +
#1

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.
Reply
#2

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( ... );
Reply
#3

You cant move object to create object lol

Use the coords only, without createobject
Reply
#4

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.
Reply
#5

fixed reped all thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)