[Ajuda]SetPlayerAttachedObject - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda]SetPlayerAttachedObject (
/showthread.php?tid=245936)
[Ajuda]SetPlayerAttachedObject -
Link_ - 02.04.2011
Galera eu to com um probleminha aki com esse SetPlayerAttachedObject quando eu digito o cmd pra ter o papagaio eli aparece e sai do player por que?
pawn Код:
if(strcmp(cmd, "/meupapagaio", true) == 0)
{
if(pUltilidades[playerid][Papagaio] == 1)
{
SendClientMessage(playerid, COLOR_YELLOW, "Vocк esta com o seu papagaio! para tirara as ultilidades use : /tirarutilidades");
SetPlayerAttachedObject(playerid,0, 19078, 1, 0.319503, -0.089340, -0.185576, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // TheParrot1 - arara
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "Vocк nгo tem um papagaio, compre no shopping!");
}
return 1;
}
Re: [Ajuda]SetPlayerAttachedObject -
LuxurioN™ - 02.04.2011
Quote:
Originally Posted by Link_
Galera eu to com um probleminha aki com esse SetPlayerAttachedObject quando eu digito o cmd pra ter o papagaio eli aparece e sai do player por que?
pawn Код:
if(strcmp(cmd, "/meupapagaio", true) == 0) { if(pUltilidades[playerid][Papagaio] == 1) { SendClientMessage(playerid, COLOR_YELLOW, "Vocк esta com o seu papagaio! para tirara as ultilidades use : /tirarutilidades"); SetPlayerAttachedObject(playerid,0, 19078, 1, 0.319503, -0.089340, -0.185576, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // TheParrot1 - arara } else { SendClientMessage(playerid, COLOR_YELLOW, "Vocк nгo tem um papagaio, compre no shopping!"); } return 1; }
|
Nгo vi nada de "incorreto" no seu comando. Testei-o (sem a variбvel condicional) e funcionou perfeitamente.

Comando:
Код:
if(strcmp(cmd, "/meupapagaio", true) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Vocк esta com o seu papagaio! para tirara as ultilidades use : /tirarutilidades");
SetPlayerAttachedObject(playerid,0, 19078, 1, 0.319503, -0.089340, -0.185576, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
return 1;
}
SetPlayerAttachedObject