CreatePickup
#1

I am having a problem creating a pick up.
Код:
new pickup;
CreatePickup(355, 1958.4805, 950.0847, 10.8203, -1);
I crash when I compile:

Код:
C:\Users\Joel\SA-MP Server Making Kit\gamemodes\lvdm.pwn(421) : warning 213: tag mismatch
C:\Users\Joel\SA-MP Server Making Kit\gamemodes\lvdm.pwn(420) : warning 203: symbol is never used: "pickup"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Reply
#2

pawn Код:
new pickup = CreatePickup(355, 1958.4805, 950.0847, 10.8203, -1);
What's wrong with that?
Reply
#3

C:\Users\Joel\SA-MP Server Making Kit\gamemodes\lvdm.pwn(420) : warning 213: tag mismatch
C:\Users\Joel\SA-MP Server Making Kit\gamemodes\lvdm.pwn(420) : warning 204: symbol is assigned a value that is never used: "pickup"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

Reply
#4

Is pickup already assigned to something? Post your whole code please.
Reply
#5

Код:
new pickup = CreatePickup(355, 1958.4805, 950.0847, 10.8203, -1);
You mean this?
Reply
#6

Can I see your whole script or the area the error is?
Reply
#7

The code what I just posted is the error line
Reply
#8

write this above OnGameModeInit:
Код:
new pickup;
Then write in OnGameModeInit:
Код:
pickup = CreatePickup(355, 1, 1958.4805, 950.0847, 10.8203, -1);
that should work.
The -1 means that the pickup shows in every virtual world.. change it to whatever you want if you dont want it to show in every world..
Reply
#9

pawn Код:
CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld)
https://sampwiki.blast.hk/wiki/CreatePickup
Reply
#10

Код:
#include <a_samp>



public OnGameModeInit()
{
  AddStaticPickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld); 
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)