SAMP Movegate Problem? ;( - 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: SAMP Movegate Problem? ;( (
/showthread.php?tid=187146)
SAMP Movegate Problem? ;( -
hadzx - 01.11.2010
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
Re: SAMP Movegate Problem? ;( -
knackworst - 01.11.2010
Did you add
new CarShopGate
and
CarShopGate = creatobject... ?
Re: SAMP Movegate Problem? ;( -
hadzx - 01.11.2010
yup
Код:
CarShopGate = CreateObject(971,2458.73242188,-1779.78686523,14.81658936,0.00000000,0.00000000,179.99450684);
Re: SAMP Movegate Problem? ;( -
knackworst - 01.11.2010
umm, why true = 10?
Re: SAMP Movegate Problem? ;( -
hadzx - 01.11.2010
all of mine are 10?
anyideas why it has theses errors?
Re: SAMP Movegate Problem? ;( -
knackworst - 01.11.2010
hmmm...
tell me what lines is -56 and what is -61?
Re: SAMP Movegate Problem? ;( -
Bessensap - 01.11.2010
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;
}