[Ajuda] Comando Portгo
#1

Ajuda comando portгo deu 14 Warnings - warning 202: number of arguments does not match definition
code abaixo:

pawn Код:
if(strcmp(cmd, "/pgro", true) == 0)
    {
        if (PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14)
        {
            if(PlayerToPoint(15.0, playerid, 985, 2461.21, -1655.70, 13.77,  0.00, 0.00, 93.24))
            {
                F_MoveObject( pgroove1, 985, 2461.50, -1662.80, 13.77,  0.00, 0.00, 274.14);
                GameTextForPlayer(playerid, "~w~Portao Groove ~n~~b~Aberto", 5000, 3);
                SetTimer("fechargroove1", 5000, false);
            }
            else if(PlayerToPoint(15.0, playerid, 985, 2460.58, -1649.93, 13.77,  0.00, 0.00, 94.40))
            {
                F_MoveObject( pgroove2, 985, 2462.13, -1668.61, 13.77,  0.00, 0.00, 274.14);
                GameTextForPlayer(playerid, "~w~Portao Groove ~n~~b~Aberto", 5000, 3);
                SetTimer("fechargroove2", 5000, false);
            }
        }
        return 1;
    }
Linhas das Warnings

32528 - if(PlayerToPoint(15.0, playerid, 985, 2461.21, -1655.70, 13.77, 0.00, 0.00, 93.24))
32530 - F_MoveObject( pgroove1, 985, 2461.50, -1662.80, 13.77, 0.00, 0.00, 274.14);
32534 - else if(PlayerToPoint(15.0, playerid, 985, 2460.58, -1649.93, 13.77, 0.00, 0.00, 94.40)
32536 - F_MoveObject( pgroove2, 985, 2462.13, -1668.61, 13.77, 0.00, 0.00, 274.14);

Obrigado
Reply
#2

Poste os warns bola de cristal foi outro pro conserto
Reply
#3

Quote:
Originally Posted by Wellington1999
Посмотреть сообщение
Poste os warns bola de cristal foi outro pro conserto
Se tu nгo percebeu eu postei ali em cima:

Warnings - warning 202: number of arguments does not match definition
Reply
#4

32528 - if(PlayerToPoint(15.0, playerid, 985, 2461.21, -1655.70, 13.77, 0, 0))
32530 - F_MoveObject( pgroove1, 985, 2461.50, -1662.80, 13.77,0, 0);
32534 - else if(PlayerToPoint(15.0, playerid, 985, 2460.58, -1649.93, 13.77, 0,0);
32536 - F_MoveObject( pgroove2, 985, 2462.13, -1668.61, 13.77,0 , 0);

Obrigado[/QUOTE]
Reply
#5

Agora deu 10 Warnings

Linhas 32528, 32530, 32534 , 32536: warning 202: number of arguments does not match definition
Reply
#6

pawn Код:
if(strcmp(cmd, "/pgro", true) == 0)
    {
        if (PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14)
        {
            if(PlayerToPoint(15.0, playerid, 985.0, 2461.21, -1655.70))
            {
                F_MoveObject( pgroove1, 985.0, 2461.50, -1662.80, 3.0);
                GameTextForPlayer(playerid, "~w~Portao Groove ~n~~b~Aberto", 5000, 3);
                SetTimer("fechargroove1", 5000, false);
            }
            else if(PlayerToPoint(15.0, playerid, 985.0, 2460.58, -1649.93))
            {
                F_MoveObject( pgroove2, 985.0, 2462.13, -1668.61, 3.0);
                GameTextForPlayer(playerid, "~w~Portao Groove ~n~~b~Aberto", 5000, 3);
                SetTimer("fechargroove2", 5000, false);
            }
        }
        return 1;
    }
Reply
#7

argumento de numeros nao definidos
Reply
#8

Os Argumentos estгo errados (parametros), verifique na funзгo, o que tem que colocar, pra nгo dar erro.
Reply
#9

Quote:
Originally Posted by SkyX
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/pgro", true) == 0)
    {
        if (PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14)
        {
            if(PlayerToPoint(15.0, playerid, 985.0, 2461.21, -1655.70))
            {
                F_MoveObject( pgroove1, 985.0, 2461.50, -1662.80, 3.0);
                GameTextForPlayer(playerid, "~w~Portao Groove ~n~~b~Aberto", 5000, 3);
                SetTimer("fechargroove1", 5000, false);
            }
            else if(PlayerToPoint(15.0, playerid, 985.0, 2460.58, -1649.93))
            {
                F_MoveObject( pgroove2, 985.0, 2462.13, -1668.61, 3.0);
                GameTextForPlayer(playerid, "~w~Portao Groove ~n~~b~Aberto", 5000, 3);
                SetTimer("fechargroove2", 5000, false);
            }
        }
        return 1;
    }
Lembrei oq eu fiz de errado nгo define X , Y , Z
Depois que ue peguei as cordenadas vlw +UP pra geral que me ajudou
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)