SAMP Movegate Problem? ;(
#1

ok so i made a gate and u can open and close and i made it in MTA SA Raceeditor converted it and blah blah blah


and i made the open/close command and i get theses errors ;/ how do i shorten the pos down or wut ever

Код:
if (strcmp("/opengate", cmdtext, true, 10) == 0)
	{
        MoveObject(CarShopGate, 2458.39648438,-1779.59020996,17.16600418,0.00000000,0.00000000,179.99450684, 3.0);
        return 1;
	}
	if (strcmp("/closegate", cmdtext, true, 10) == 0)
	{
        MoveObject(CarShopGate, 2458.73242188,-1779.78686523,14.81658936,179.99450684, 3.0);
        return 1;
	}
and the BORNING ERRORS ;/


Код:
C:\Users\Stephen\Desktop\serv\gamemodes\gmtest.pwn(456) : warning 202: number of arguments does not match definition
C:\Users\Stephen\Desktop\serv\gamemodes\gmtest.pwn(456) : warning 202: number of arguments does not match definition
C:\Users\Stephen\Desktop\serv\gamemodes\gmtest.pwn(456) : warning 202: number of arguments does not match definition
C:\Users\Stephen\Desktop\serv\gamemodes\gmtest.pwn(461) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
any ideas? thanks
Reply
#2

Did you add

new CarShopGate

and

CarShopGate = creatobject... ?
Reply
#3

yup

Код:
new CarShopGate;
Код:
CarShopGate = CreateObject(971,2458.73242188,-1779.78686523,14.81658936,0.00000000,0.00000000,179.99450684);
Reply
#4

umm, why true = 10?
Reply
#5

all of mine are 10? anyideas why it has theses errors?
Reply
#6

hmmm...
tell me what lines is -56 and what is -61?
Reply
#7

Try this:

pawn Код:
if (strcmp("/opengate", cmdtext, true, 10) == 0)
    {
        MoveObject(CarShopGate, 2458.39648438,-1779.59020996,17.16600418,3.0);
        return 1;
    }
    if (strcmp("/closegate", cmdtext, true, 10) == 0)
    {
        MoveObject(CarShopGate, 2458.73242188,-1779.78686523,14.81658936, 3.0);
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)