SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 21/01/2020, 01:57 AM   #1
SrGhost
Big Clucker
 
SrGhost's Avatar
 
Join Date: Jun 2019
Location: Uberlandia-MG
Posts: 71
Reputation: 5
Default PickUp com Açao

Bom estava tentando colocar uma açao ao player passar no pickup mas acontece que ja compilou tudo certinho e
in-game passo no pickup e nao executa nenhuma açao...

Inicio da GM
PHP Code:
new Teste
GamemodeInit

PHP Code:
    Teste CreatePickup(123902837.4219,-2530.1016,18.0299); 
OnPlayerPickUpPickup
PHP Code:
public OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == Teste)
    {
        
SetPlayerPos(playerid2837.5164,-2530.4460,33.8609);
    }
    return 
1;

Estou Fazendo algo errado ?
__________________



https://discord.gg/5ZGt2YD
SrGhost is offline   Reply With Quote
Old 21/01/2020, 02:23 AM   #2
Hassel
Little Clucker
 
Join Date: Dec 2019
Posts: 35
Reputation: 12
Default Re: PickUp com Açao

https://wiki.sa-mp.com/wiki/PickupTypes
Hassel is offline   Reply With Quote
Old 21/01/2020, 03:16 AM   #3
SrGhost
Big Clucker
 
SrGhost's Avatar
 
Join Date: Jun 2019
Location: Uberlandia-MG
Posts: 71
Reputation: 5
Default Re: PickUp com Açao

Quote:
Originally Posted by Hassel View Post
Opan Vlw ae man estava dando errado por uma coisinha boba estava deixando o type em 0 sendo que era pra deixar em 2....
__________________



https://discord.gg/5ZGt2YD
SrGhost is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Dialog não tem ação LucasW Português/Portuguese 4 06/01/2020 08:28 PM
[Pedido] Ação do personagem zCyan Português/Portuguese 11 04/08/2017 07:37 PM
[Ajuda] 2 pessoas ou + =ação :S SonicFreeStyle Português/Portuguese 1 03/11/2013 05:08 AM
[erro]comando sem acao!! syslogg Português/Portuguese 9 05/01/2011 01:17 PM
[DUV] Ação em um pickup guigil Português/Portuguese 12 15/03/2010 09:05 PM


All times are GMT. The time now is 04:38 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.