SA-MP Forums Archive
Gate Issue - 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 Issue (/showthread.php?tid=299483)



Gate Issue - Qur - 26.11.2011

Hey.. For some reason in 0.3d forums its only for Bugs.. and people dont help there (dunno why..) and i know all scripts are importent but i'm in hurry with that crap...
Anyway.. 0.3d changed the parameters of MoveObject...
and right now all my gates are changing pos when opening...
and I cant fix it.. its always giving me error of:

Number of arguments does not match definition

here's the lines:

pawn Код:
if(mafiagateopen == false)
                 {
                     MoveObject(mafiagate, 318.5126,-1190.2949,75.5956+0.01,0.01,0.00000000,0.00000000,0.00000000);
                     mafiagateopen = true;
                     GetPlayerName(i, sendername, sizeof(sendername));
                     format(string, sizeof(string), "* %s Opens the gate with his remote control.", sendername);
                     ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                 }
                 if(mafiagateopen == true)
                 {
                     MoveObject(mafiagate, 324.1843, -1185.8805, 75.5956, 3.5); // the old coords i used for it to be closed..
                     mafiagateopen = false;
                 }
                 return 1;



Re: Gate Issue - |_ⒾⓇⓄN_ⒹⓄG_| - 26.11.2011

what line give the error?
thanks


Re: Gate Issue - SmiT - 26.11.2011

https://sampwiki.blast.hk/wiki/MoveObject


Re: Gate Issue - Qur - 26.11.2011

this line:
pawn Код:
MoveObject(mafiagate, 318.5126,-1190.2949,75.5956+0.01,0.01,0.00000000,0.00000000,0.00000000);
And stop give links to wiki i already checked it.. common.. seriously..