interiors [help]
#1

ok i have my pickups but how do i make them to display some thing and make them to enter to interiors?... here is my code
Код:
 AddStaticPickup(1272,1,2310.1145,-1643.8789,14.8270,0);//TBK Gang Bar
  AddStaticPickup(1272,1,1059.6234,-344.8648,73.9922,0);//UF Gang House
  AddStaticPickup(1272,1,1125.2079,-2036.5889,69.8821,0);//PP Gang House
  AddStaticPickup(1272,1,1766.1357,-2049.0229,13.9310,0);//LSA Gang House
  AddStaticPickup(1272,1,1684.5435,-2099.3535,13.8343,0);// LSA Leader House Pablo_Gonzalez
  AddStaticPickup(1272,1,2495.2363,-1690.6776,14.7656,0);//TBK Leader House Jimi_Hendrix
  AddStaticPickup(1272,1,2459.2410,-1690.6565,13.5483,0);//TBK gang House
 	AddStaticPickup(1272,1,1080.6964,-344.1939,73.9922,0);//UF leader House
 	AddStaticPickup(1274,1,1460.7473,-1011.3787,26.8438,0);//Bank
 	AddStaticPickup(1239,1,661.3355,-573.2501,16.3359,0);//24/7 By LVPD
 	AddStaticPickup(1239,1,999.9017,-920.0309,42.3281,0);//24/7 Vinewood1
 	AddStaticPickup(1239,1,1315.6864,-898.8568,39.5781,0);//24/7 Vinewood2
 	AddStaticPickup(1239,1,1833.2377,-1842.8231,13.5781,0);//24/7 Unity
 	AddStaticPickup(1239,1,1929.3285,-1776.0215,13.5469,0);//24/7 Idlewood
 	AddStaticPickup(1329,1,1482.5477,-1771.1123,18.7958,0);//DMV/Job
Reply
#2

Код:
new mypickup[2];
Код:
OnGameModeInIt

mypickup[0] = CreatePickup(...
mypickup[1] = CreatePickup(...
Код:
OnPlayerPickupPickUp

if(pickupid == mypickup[0])
{
  ...
}
else if(pickupid == mypickup[1])
{
  ...
}
Reply
#3

thx!!!and what do i do here?
Код:
if(pickupid == mypickup[0])
{
  ...
}
i got errors
Код:
C:\Documents and Settings\Taylor McGee\Desktop\SA-MP Scripting V 0.3\gamemodes\BRP.pwn(136) : error 017: undefined symbol "mypickup"
C:\Documents and Settings\Taylor McGee\Desktop\SA-MP Scripting V 0.3\gamemodes\BRP.pwn(136) : warning 215: expression has no effect
C:\Documents and Settings\Taylor McGee\Desktop\SA-MP Scripting V 0.3\gamemodes\BRP.pwn(136) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Taylor McGee\Desktop\SA-MP Scripting V 0.3\gamemodes\BRP.pwn(136) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Taylor McGee\Desktop\SA-MP Scripting V 0.3\gamemodes\BRP.pwn(136) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#4

if(pickupid == mypickup[0])
{
SetPlayerPos(playerid,-25.884499,-35.0952,-3.3979 -185.868988,-188.7431,-167.9059 1003.549988,1002.5469,1008.7656 ); // 24-7 Pos
SetPlayerInterior(playerid,16) // 24.7 interior
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)