[Ajuda] Warnings
#1

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.5791026.232498,3.00.0000000.00000090.000000);
                
SetTimerEx("Close"5000false"iffff",PortaoL,659.103760, -1309.57910212.727340,3.0);
            }
            if(
PlayerToPoint(8.0,i,661.4077,-1228.4657,15.6664))
            {
                
MoveDynamicObject(PortaoM,662.700073, -1222.2867438.625224,3.00.0000000.00000090.000000);
                
SetTimerEx("Close"5000false"iffff",PortaoM,662.700073, -1222.28674315.000000,3.0);
            }
            if(
PlayerToPoint(8.0,i,785.0167,-1152.6936,23.5571))
            {
                
MoveDynamicObject(PortaoN,785.872986, -1158.26342816.330641,3.00.0000000.00000090.000000);
                
SetTimerEx("Close"5000false"iffff",PortaoN,785.872986, -1158.26342822.776463,3.0);
            }
        } 
ao compilar dб os seguintes warnings:
PHP код:
(12134) : warning 202number of arguments does not match definition
(25039) : warning 202number of arguments does not match definition
(25039) : warning 202number of arguments does not match definition
(25039) : warning 202number of arguments does not match definition
(25044) : warning 202number of arguments does not match definition
(25044) : warning 202number of arguments does not match definition
(25044) : warning 202number of arguments does not match definition
(25049) : warning 202number of arguments does not match definition
(25049) : warning 202number of arguments does not match definition
(25049) : warning 202number of arguments does not match definition 
alguйm pode me ajudar por favor ?
Reply
#2

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);
            }
        }
Reply
#3

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);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)