I just can't work this out
#1

I've done this before and it worked, but I can't remember how to do it

Код:
public OnGameModeInit()
{
  new truckspawner = AddStaticPickup(2589, 23, 1335.4030,2674.2144,11.2392,0);
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == truckerspawner)
    {
      SendClientMessage(playerid, COLOR_GREEN, "You are at the truck spawner!");
    }
 return 0;
}
Quote:

C:\samp\server 7711\gamemodes\truckfr.pwn(469) : error 017: undefined symbol "truckspawner"
C:\samp\server 7711\gamemodes\truckfr.pwn(746) : warning 204: symbol is assigned a value that is never used: "truckspawner"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

can anyone help?

thanks
Reply
#2

CreatePickup
Reply
#3

Quote:
Originally Posted by M1K1
CreatePickup
BRILLIANT.
thanks
Reply
#4

Seem to be getting the same problem... it doesn't like me doing the "new" under a different header.
if I do it under OnPlayerPickUpPickup, it will now show because I havent picked it up yet xd
Reply
#5

pawn Код:
new truckspawner;
public OnGameModeInit()
{
  truckspawner = CreatePickup();
}
Reply
#6

Quote:

C:\samp\server 7711\gamemodes\truckfr.pwn(469) : error 017: undefined symbol "truckspawner"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply
#7

Show your code
Reply
#8

whole lot?
Reply
#9

k, stupid question

I sent it to you via PM :P
Reply
#10

Put
pawn Код:
new truckspawner;
on the very top of the script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)