This is strange - 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: This is strange (
/showthread.php?tid=573223)
This is strange -
IndependentGaming - 05.05.2015
I hope i explain this good.
When i edit my dynamic door to custom interior so you get freeze time
and you use /enter it enter the door but it exit the door automatically
but when i edit the dynamic door to custom exterior and i use /exit by the interior position it is working.
did i do something wrong ?
See /enter command:
PHP код:
CMD:enter(playerid,params[])
{
for(new i = 0; i < sizeof(DoorInfo); i++)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,DoorInfo[i][dEnterX],DoorInfo[i][dEnterY],DoorInfo[i][dEnterZ])) {
SetPlayerPos(playerid, DoorInfo[i][dExitX],DoorInfo[i][dExitY],DoorInfo[i][dExitZ]);
SetPlayerInterior(playerid, DoorInfo[i][dExitInt]); SetPlayerVirtualWorld(playerid, DoorInfo[i][dExitVW]);
}
if(DoorInfo[i][ddCustomInterior])
{
Player_StreamPrep(playerid, DoorInfo[i][dEnterX],DoorInfo[i][dEnterY],DoorInfo[i][dEnterZ], FREEZE_TIME);
}
}
return 1;
}
AW: This is strange -
Mencent - 05.05.2015
Hello!
Try this:
PHP код:
CMD:enter(playerid,params[])
{
for(new i;i<sizeof DoorInfo;i++)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,DoorInfo[i][dEnterX],DoorInfo[i][dEnterY],DoorInfo[i][dEnterZ]))
{
SetPlayerPos(playerid,DoorInfo[i][dExitX],DoorInfo[i][dExitY],DoorInfo[i][dExitZ]);
SetPlayerInterior(playerid,DoorInfo[i][dExitInt]);
SetPlayerVirtualWorld(playerid,DoorInfo[i][dExitVW]);
break;
}
if(DoorInfo[i][ddCustomInterior])
{
PlayerStreamPrep(playerid,DoorInfo[i][dEnterX],DoorInfo[i][dEnterY],DoorInfo[i][dEnterZ],FREEZE_TIME);
}
}
return 1;
}
Re: This is strange -
IndependentGaming - 05.05.2015
PHP код:
(406) : error 017: undefined symbol "PlayerStreamPrep"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
AW: This is strange -
Mencent - 05.05.2015
PHP код:
PlayerStreamPrep
to
PHP код:
Player_StreamPrep
Sorry for the mistake.