Moving gates 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: Moving gates problem (
/showthread.php?tid=155848)
Moving gates problem -
a!DaN)_)-) - 19.06.2010
erm yeah the problem i have is i script the gates in with the coords and cmds n stuff from jucies [TUT] but when run samp-server.exe my cars disapere and its gets to welcome to ___________blah blah but it dosnt come up with where i can login any suggestions ill get the script part from gate if ya want so you can have a look
here is the script i added for the gate at LSPD
i added
Код:
new pdoutdoor;
if(strcmp(cmdtext,"/ood", true) == 0)
{
if(PlayerToPoint(15.0, playerid,1579.21,-1637.95,14.0793))
{
MoveObject(pdoutdoor, 1579.21,-1637.95,14.0793, 2.500000);
return 1;
}
}
}
if(strcmp(cmdtext,"/cod", true) == 0)
{
if(PlayerToPoint(15.0, playerid,1581.21,-1637.95,14.0793))
{
MoveObject(hqgate, 1581.21,-1637.95,14.0793, 1.500000);
return 1;
}
}
}
is this ok or does there need to be a closed braket ? or somethign please help me
Re: Moving gates problem -
Antonio [G-RP] - 19.06.2010
How did that shit even compile !?!?
AND I don't believe the 'hqgate' on the last command is supposed to be that.. i THINK its supposed to be pdoutdoor
pawn Код:
new pdoutdoor;
if(strcmp(cmdtext,"/ood", true) == 0)
{
if(PlayerToPoint(15.0, playerid,1579.21,-1637.95,14.0793)) {
MoveObject(pdoutdoor, 1579.21,-1637.95,14.0793, 2.500000);
}
return 1;
}
if(strcmp(cmdtext,"/cod", true) == 0)
{
if(PlayerToPoint(15.0, playerid,1581.21,-1637.95,14.0793)) {
MoveObject(pdoutdoor, 1581.21,-1637.95,14.0793, 1.500000);
}
return 1;
}
Re: Moving gates problem -
a!DaN)_)-) - 19.06.2010
so whats rong with it lol how can i make it work?
Re: Moving gates problem -
Antonio [G-RP] - 19.06.2010
Whats wrong is that it was a fucked commands, try the one i fixed.
Re: Moving gates problem -
a!DaN)_)-) - 19.06.2010
thanks mate