Help with a problem [please enter D:] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Help with a problem [please enter D:] (
/showthread.php?tid=258443)
Help with a problem [please enter D:] -
GabryIIPazzo2 - 30.05.2011
Hi.
In my server, once tested the code, the door will not open.
What's wrong?
Thanks.
Код:
public OnPlayerUpdate(playerid)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof pname);
if(strcmp(pname, "Lo_Spericolato", true) ==0)
{
if(IsPlayerInRangeOfPoint(playerid, 20.0, -1087.8724365234, -315.17031860352, 14.500469207764))
MoveObject(hangarsfair, -1087.4228515625, -321.4111328125, 14.500469207764, 1.0);
}
else if(strcmp(pname, "Lo_Spericolato", true) ==0)
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, -1109.4988,-311.5401,10.7528))
MoveObject(hangarsfair, -1087.8724365234, -315.17031860352, 14.500469207764, 1.0);
}
return 1;
}
Re: Help with a problem [please enter D:] -
Swiftz - 30.05.2011
did u hangarsfair = createobject...?
Re: Help with a problem [please enter D:] -
GabryIIPazzo2 - 30.05.2011
Mmmh... wait.
O.O
Oh fuck, the moveobject shouldto be MoveDynamicObject!!!
Thanks anyway.