[Ajuda] Pickup
#1

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

+rep
Reply
#2

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
Reply
#3

public OnPlayerPickUpPickup(playerid, pickupid)
Reply
#4

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

    return true;
}
Reply
#5

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.
Reply
#6

E as linhas ?
Reply
#7

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);
Reply
#8

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
Reply
#9

Й isso mesmo, foi mal nem percebi
Reply
#10

Arrumei.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)