new PortaoP1;
forward PortaoP1Fechar();
PortaoP1 = CreateObject(971, -1251.86584, -1055.91187, -2.03630, 0.00000, 0.00000, 90.00000);
CMD:pp1(playerid, params[])
{
if (PlayerToPoint(1, playerid, -1251.1232,-1056.3406,-1.2310))
{
MoveObject(PortaoP1, -1251.8658, -1055.9119, -5.8553, 3,0.0,0.0,90.0);
SetTimer("PortaoP1Fechar", 4000, false);
}
return 1;
}
public PortaoP1Fechar()
{
MoveObject(PortaoP1, -1251.86584, -1055.91187, -2.03630, 2);
return 1;
}
CreateDynamicObject
MoveDynamicObject
public PortaoP1Fechar()
{
MoveObject(PortaoP1, -1251.86584, -1055.91187, -2.03630, 2.000, 0.00000, 0.00000, 90.00000);
return 1;
}
MoveObject(PortaoP1, -1251.86584, -1055.91187, -2.03630, 2);
MoveObject(PortaoP1,-1251.86584, -1055.91187, -2.03630, 3,0.0,0.0,90.0);
Tente usar
PHP код:
PHP код:
|
CMD:pp1(playerid, params[])
{
if (PlayerToPoint(1, playerid, -1251.1232,-1056.3406,-1.2310))
{
MoveDynamicObject(PortaoP1, -1251.8658, -1055.9119, -5.8553, 3,0.0,0.0,90.0); // Linha do Warning
SetTimer("PortaoP1Fechar", 4000, false);
}
return 1;
}
public PortaoP1Fechar()
{
MoveDynamicObject(PortaoP1, -1251.86584, -1055.91187, -2.03630, 2.000, 0.00000, 0.00000, 90.00000); // Linha do Warning
return 1;
}
D:\Downloads\Prison Life v1.0\gamemodes\PL.pwn(3023) : warning 202: number of arguments does not match definition D:\Downloads\Prison Life v1.0\gamemodes\PL.pwn(3023) : warning 202: number of arguments does not match definition D:\Downloads\Prison Life v1.0\gamemodes\PL.pwn(3023) : warning 202: number of arguments does not match definition D:\Downloads\Prison Life v1.0\gamemodes\PL.pwn(3649) : warning 202: number of arguments does not match definition D:\Downloads\Prison Life v1.0\gamemodes\PL.pwn(3649) : warning 202: number of arguments does not match definition D:\Downloads\Prison Life v1.0\gamemodes\PL.pwn(3649) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Warnings. |