OK,what's wrong here?(help me please)
#1

Here's my code,I wanted to get rid of all yellow markers replace them with house icons wich teleports you inside the shops(easy as hell) but my problem is:

pawn Код:
new ewsp;
new ercs;
new eclb;
new ebgs;
new ezip;
new esbu;
new egyd;
new ehts;
new ebrb;
new emst;
new ebnc;
new ebgs2;
new ebgs3;
new esfpd;
new eclb2;
new ewsp2;
new evctm;

public OnGameModeInit()
{
   ewsp = AddStaticPickUp(1272,1,-1807.88, 944.69, 25.47,0)
ewsp2 = AddStaticPickUp(1272,1,-1722.62, 1359.80, 7.20,0);
eclb = AddStaticPickUp(1272,1,-1816.68, 617.08, 35.10,0);
eclb2 = AddStaticPickUp(1272,1,-2672.35, 260.49, 4.70,0);
ebgs = AddStaticPickUp(1272,1,-1911.45, 828.40, 35.24,0);
ebgs2 = AddStaticPickUp(1272,1,-2335.78, -166.81, 35.70,0);
ebgs3 = AddStaticPickUp(1272,1,-2356.90, 1008.01, 50.67,0);
ebnc = AddStaticPickUp(1272,1,-2374.77, 910.02, 45.28,0);
esbu = AddStaticPickUp(1272,1,-2491.43, -29.14, 25.70,0);
ehts = AddStaticPickUp(1272,1,-2491.83, -38.83, 25.59,0);
emst = AddStaticPickUp(1272,1,-2243.64, -88.14, 35.72,0);
esfpd = AddStaticPickUp(1272,1,-1605.60, 711.86, 13.81,0);
ezip = AddStaticPickUp(1272,1,-1883.24, 865.67, 35.11,0);
ercs = AddStaticPickUp(1272,1,-2243.19, 128.61, 35.48,0);
egyd = AddStaticPickUp(1272,1,-2551.90, 193.31, 5.90,0);
ebrb = AddStaticPickUp(1272,1,-2570.25, 245.68, 10.31,0);
evctm = AddStaticPickUp(1272,1,-1695.86, 950.77, 25.07);

   return 1;
}
For ones who gonna tell me the unhelpful answer put "#include a_samp" at top of ur gamemode I HAVE IT:

Errors:undefined symbol AddStaticPickUp
Reply
#2

Use CreatePickup
Reply
#3



Use CreatePickup, there is no such thing as AddStaticPickUp. Notice that 'pickup' is one word.
Reply
#4

EDIT (Sorry wrong post)
Reply
#5

Quote:
Originally Posted by Hiddos
Посмотреть сообщение


Use CreatePickup, there is no such thing as AddStaticPickUp. Notice that 'pickup' is one word.
eh yes, just saw that there is such a function, but it's better to use CreatePickup
Reply
#6

And use DisableInteriorEnterExits();

Reply
#7

ok evrything is working now but how to add 3D text laabels right above house icons(I mean how to get coords I can put the text on the icon but above it but how?)
Reply
#8

AddStaticPickUp is not fair best way to use CreateStaticPickUp():
Reply
#9

anyone answer hte last question about the 3d text wich I want placed right above the hosue icons?
Reply
#10

Use Create3DTextLabel, nothing hard, just copy/paste the coordinates from pickups
pawn Код:
ewsp = AddStaticPickup(1272,1,-1807.88, 944.69, 25.47,0)
Create3DTextLabel("The shop",0x008080FF,-1807.88, 944.69, 25.47,40.0,0);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)