22.03.2012, 22:55
Gente eu queira o seguinte quando passa-se no pickup aparecia um mensagem para a pessoa.
+rep
+rep
// 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;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
new VString[24];
format(VString,24,"Vocк estб no pickup %d",pickupid);
SendClientMessage(playerid,-1,VString);
return true;
}
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.
if(pickupid == pi
{
SendClientMessage(playerid,-1,"Bem vindo ao servidor!");
}
pi = CreatePickup(1239, 1, 1722.1886,-1723.0629,13.5469, -1);
pawn Код:
|
if(pickupid == PickupPassar