Comando Portгo -
iStronG - 16.01.2013
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
Re: Comando Portгo -
Wellington1999 - 16.01.2013
Poste os warns bola de cristal foi outro pro conserto
Re: Comando Portгo -
iStronG - 16.01.2013
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
Re: Comando Portгo -
Wellington1999 - 16.01.2013
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]
Re: Comando Portгo -
iStronG - 16.01.2013
Agora deu 10 Warnings
Linhas 32528, 32530, 32534 , 32536: warning 202: number of arguments does not match definition
Re: Comando Portгo -
LincoN_ - 16.01.2013
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;
}
Re: Comando Portгo -
Wellington1999 - 16.01.2013
argumento de numeros nao definidos
Re: Comando Portгo -
.FuneraL. - 16.01.2013
Os Argumentos estгo errados (parametros), verifique na funзгo, o que tem que colocar, pra nгo dar erro.
Re: Comando Portгo -
iStronG - 16.01.2013
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