Warnings -
Slipk - 24.10.2014
bom peguei uma gm pronto de base para comeзar a fazer o meu de pouco em pouco
ele й bem antigo nгo tem as rotaзхes dos potхes, adcionei as rotaзхes do modo a seguir:
PHP код:
else if(Player[playerid][pMember] == TEAM_YAKUZA)
{
if(PlayerToPoint(8.0,i,664.7974,-1307.4186,13.4609))
{
MoveDynamicObject(PortaoL,659.103760, -1309.579102, 6.232498,3.0, 0.000000, 0.000000, 90.000000);
SetTimerEx("Close", 5000, false, "iffff",PortaoL,659.103760, -1309.579102, 12.727340,3.0);
}
if(PlayerToPoint(8.0,i,661.4077,-1228.4657,15.6664))
{
MoveDynamicObject(PortaoM,662.700073, -1222.286743, 8.625224,3.0, 0.000000, 0.000000, 90.000000);
SetTimerEx("Close", 5000, false, "iffff",PortaoM,662.700073, -1222.286743, 15.000000,3.0);
}
if(PlayerToPoint(8.0,i,785.0167,-1152.6936,23.5571))
{
MoveDynamicObject(PortaoN,785.872986, -1158.263428, 16.330641,3.0, 0.000000, 0.000000, 90.000000);
SetTimerEx("Close", 5000, false, "iffff",PortaoN,785.872986, -1158.263428, 22.776463,3.0);
}
}
ao compilar dб os seguintes warnings:
PHP код:
(12134) : warning 202: number of arguments does not match definition
(25039) : warning 202: number of arguments does not match definition
(25039) : warning 202: number of arguments does not match definition
(25039) : warning 202: number of arguments does not match definition
(25044) : warning 202: number of arguments does not match definition
(25044) : warning 202: number of arguments does not match definition
(25044) : warning 202: number of arguments does not match definition
(25049) : warning 202: number of arguments does not match definition
(25049) : warning 202: number of arguments does not match definition
(25049) : warning 202: number of arguments does not match definition
alguйm pode me ajudar por favor ?
Re: Warnings -
ArthurxD - 24.10.2014
Vocк ta colocando algo a mais na funзгo.
Ex:
pawn Код:
else if(Player[playerid][pMember] == TEAM_YAKUZA)
{
if(PlayerToPoint(8.0,i,664.7974,-1307.4186,13.4609))
{
MoveDynamicObject(PortaoL,659.103760, -1309.579102, 6.232498,3.0);
SetTimerEx("Close", 5000, false, "iffff",PortaoL,659.103760, -1309.579102, 12.727340,3.0);
}
if(PlayerToPoint(8.0,i,661.4077,-1228.4657,15.6664))
{
MoveDynamicObject(PortaoM,662.700073, -1222.286743, 8.625224,3.0);
SetTimerEx("Close", 5000, false, "iffff",PortaoM,662.700073, -1222.286743, 15.000000,3.0);
}
if(PlayerToPoint(8.0,i,785.0167,-1152.6936,23.5571))
{
MoveDynamicObject(PortaoN,785.872986, -1158.263428, 16.330641,3.0);
SetTimerEx("Close", 5000, false, "iffff",PortaoN,785.872986, -1158.263428, 22.776463,3.0);
}
}
Re: Warnings -
DiiMeNoR - 24.10.2014
Esqueleto do MoveDynamicObject, confere ai e arruma os parвmetros que falta.
pawn Код:
MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed, Float:rx = -1000.0, Float:ry = -1000.0, Float:rz = -1000.0);