SA-MP Forums Archive
[Ajuda] Pickup - 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] Pickup (/showthread.php?tid=327905)



[Ajuda] Pickup - [NVC]Eduardo - 22.03.2012

Gente eu queira o seguinte quando passa-se no pickup aparecia um mensagem para a pessoa.

+rep


Re: [Ajuda] Pickup - isli27 - 22.03.2012

pawn Код:
// comeзo do GM
new PickupPassar;

//public OnGameModeInit()
PickupPassar = CreatePickup(1239, 1, 1396.8057,-1569.8961,14.2683, -1);

// public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == PickupPassar
    {
        SendClientMessage(playerid,-1,"Mensagem");
    }
    return 1;
}
@ Corrigido


Re: [Ajuda] Pickup - Lucas_Alemao - 22.03.2012

public OnPlayerPickUpPickup(playerid, pickupid)


Re: [Ajuda] Pickup - ViniBorn - 22.03.2012

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    new VString[24];
    format(VString,24,"Vocк estб no pickup %d",pickupid);
    SendClientMessage(playerid,-1,VString);

    return true;
}



Re: [Ajuda] Pickup - [NVC]Eduardo - 22.03.2012

Quote:
Originally Posted by isli27
Посмотреть сообщение
pawn Код:
// comeзo do GM
new PickupPassar;

//public OnGameModeInit()
PickupPassar = CreatePickup(1239, 1, 1396.8057,-1569.8961,14.2683, -1);

// public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == PickupPassar
    {
        SendClientMessage(playerid,-1,"Mensagem");
    }
    return 1;
}
@ Corrigido
Erros
pawn Код:
C:\Users\Casa\Desktop\Servidor SAMP\gamemodes\TreinoBallas.pwn(341) : error 028: invalid subscript (not an array or too many subscripts): "pi"
C:\Users\Casa\Desktop\Servidor SAMP\gamemodes\TreinoBallas.pwn(344) : error 010: invalid function or declaration
C:\Users\Casa\Desktop\Servidor SAMP\gamemodes\TreinoBallas.pwn(139) : warning 204: symbol is assigned a value that is never used: "pi"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.



Re: [Ajuda] Pickup - isli27 - 22.03.2012

E as linhas ?


Re: [Ajuda] Pickup - [NVC]Eduardo - 22.03.2012

Linhas 341 e 344
pawn Код:
if(pickupid == pi
    {
        SendClientMessage(playerid,-1,"Bem vindo ao servidor!");
    }
Linha 139
pawn Код:
pi = CreatePickup(1239, 1, 1722.1886,-1723.0629,13.5469, -1);



Re: [Ajuda] Pickup - ViniBorn - 22.03.2012

Quote:
Originally Posted by isli27
Посмотреть сообщение
pawn Код:
// comeзo do GM
new PickupPassar;

//public OnGameModeInit()
PickupPassar = CreatePickup(1239, 1, 1396.8057,-1569.8961,14.2683, -1);

// public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == PickupPassar
    {
        SendClientMessage(playerid,-1,"Mensagem");
    }
    return 1;
}
@ Corrigido
Faltou ) no if

pawn Код:
if(pickupid == PickupPassar



Re: [Ajuda] Pickup - isli27 - 22.03.2012

Й isso mesmo, foi mal nem percebi


Re: [Ajuda] Pickup - [NVC]Eduardo - 22.03.2012

Arrumei.