[Ajuda] /tirarsirene nгo funciona! - 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] /tirarsirene nгo funciona! (
/showthread.php?tid=372195)
/tirarsirene nгo funciona! -
GoldLion - 25.08.2012
eae galera blz?
bom, o /sirene funfa normal, mas na hora de tirar, nгo funfa, podem me ajudar?
TOPO:
new sirenecar;
COMANDOS
sirenecar = CreateObject(19419, 0, 0, 0, 0, 0, 0);
AttachObjectToVehicle(sirenecar, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
if(strcmp(cmd, "/sirene", true) == 0) {
CreateObject(sirenecar);
SendClientMessage(playerid, COLOR_YELLOW, "Sirene Adicionada");
return 1;
}
if(strcmp(cmd, "/tirarsirene", true) == 0) {
DestroyObject(sirenecar);
SendClientMessage(playerid, COLOR_YELLOW, "Sirene #Fugio");
return 1;
}
Re: /tirarsirene nгo funciona! -
DartakousLien - 25.08.2012
supostamente porque voce nao esta a usar nenhum parametro adicional, isso й global, deveria ter algo como
sirenecar[playerid] ou sirenecar[veiculoid]
Re: /tirarsirene nгo funciona! -
Victor' - 25.08.2012
pawn Код:
TOPO:
new sirenecar[MAX_PLAYERS];
if(strcmp(cmd, "/sirene", true) == 0) {
sirenecar[playerid] = CreateObject(19419, 0, 0, 0, 0, 0, 0);
AttachObjectToVehicle(sirenecar[playerid], GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
SendClientMessage(playerid, COLOR_YELLOW, "Sirene Adicionada");
return 1;
}
if(strcmp(cmd, "/tirarsirene", true) == 0) {
DestroyObject(sirenecar[playerid]);
SendClientMessage(playerid, COLOR_YELLOW, "Sirene #Fugio");
return 1;
}
Respuesta: /tirarsirene nгo funciona! -
GoldLion - 25.08.2012
ok, vou testar, como da +rep?
Re: /tirarsirene nгo funciona! -
DartakousLien - 25.08.2012

embaixo do avatar xD
Respuesta: /tirarsirene nгo funciona! -
GoldLion - 25.08.2012
+rep pros dois, vlw gente !