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



Pickup с apareзe - Arthenry - 18.07.2012

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);
}



Re: Pickup с apareзe - .FuneraL. - 18.07.2012

Createpickup estб no OnGameModeInit Correto?


Re: Pickup с apareзe - Arthenry - 18.07.2012

Sim ta certin


Re: Pickup с apareзe - .FuneraL. - 18.07.2012

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);



Re: Pickup с apareзe - Arthenry - 18.07.2012

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.



Re: Pickup с apareзe - Jason` - 18.07.2012

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



Re: Pickup с apareзe - .FuneraL. - 18.07.2012

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);



Re: Pickup с apareзe - Arthenry - 18.07.2012

funfo funeral obrigado por ajudar + REP