[Ajuda] Pickup с apareзe
#1

Bom define no topo junto com outras pickups:

pawn Код:
//pickups
new entraragencia;
new pprofs;
new entrarentv;
define a entraragencia!

ai colokei aki tbm junto com outras pick:
pawn Код:
//PICKUPS
entraragencia = CreatePickup(1239,1,1219.2454,-1812.4224,16.5938,359.3054);
entrarentv= CreatePickup(1239,1,366.7318,188.4142,1008.3828);
sairentv = CreatePickup(1239,1,366.3933,197.1831,1008.3828);
Certo, agora um pause!
eu testo no sv e nгo apareзe a pickup no lugar q eu colokei pra ela apareзer '-'

Ai aki eu acho q ta certo pra qnd chegar na pickup entrar:
pawn Код:
if(pickupid == entraragencia)
{
GameTextForPlayer(playerid, "~w~Agencia de Empregos", 5000, 8);
SetPlayerPos(playerid,2315.952880,-1.618174,26.742187);
SetPlayerInterior(playerid,0);
}
Reply
#2

Createpickup estб no OnGameModeInit Correto?
Reply
#3

Sim ta certin
Reply
#4

Tente Assim

pawn Код:
entraragencia = CreatePickup(1239,1,1219.2454,-1812.4224,16.5938,359.3054, -1);
entrarentv= CreatePickup(1239,1,366.7318,188.4142,1008.3828, -1);
sairentv = CreatePickup(1239,1,366.3933,197.1831,1008.3828, -1);
Reply
#5

pawn Код:
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(2007) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:           6428 bytes
Code size:           862592 bytes
Data size:          1170412 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 2055816 bytes

1 Warning.
Reply
#6

pawn Код:
entraragencia = CreatePickup(1239,1,1219.2454,-1812.4224,16.5938,0);
Reply
#7

Descobri o erro , Parametros errados, coloque este cуdigo:

pawn Код:
entraragencia = CreatePickup(1239,1,1219.2454,-1812.4224,16.5938, -1);
entrarentv= CreatePickup(1239,1,366.7318,188.4142,1008.3828, -1);
sairentv = CreatePickup(1239,1,366.3933,197.1831,1008.3828, -1);
Reply
#8

funfo funeral obrigado por ajudar + REP
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)