Objects/Pickups
#1

How can i make this...
When player pickup some object he get money like this...id 1210
Reply
#2

Its right in the example on the wiki
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
Reply
#3

Quote:

C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : error 010: invalid function or declaration
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : error 021: symbol already defined: "CreateStreamObject"
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : error 010: invalid function or declaration
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : fatal error 107: too many error messages on one line

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


4 Errors.

Quote:

....
public OnGameModeInit()
{
cash = CreatePickup(2976, 3, 0.0, 0.0, 9.0);
}
CreateStreamObject(16304, -1323.244019, -204.352386, 18.008726, 0.0000, 0.0000, 0.0000, 500);
CreateStreamObject(18450, -844.679993, 450.461609, 541.154785, 0.0000, 317.0282, 45.0000, 500);
CreateStreamObject(18450, -884.941528, 410.273834, 488.122314, 0.0000, 317.0282, 45.0000, 500);
CreateStreamObject(18450, -925.591064, 369.585541, 434.571167, 0.0000, 317.0282, 45.0000, 500);
...

Reply
#4

Quote:
Originally Posted by [FG
otto ]
Quote:

C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : error 010: invalid function or declaration
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : error 021: symbol already defined: "CreateStreamObject"
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : error 010: invalid function or declaration
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : fatal error 107: too many error messages on one line

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


4 Errors.

Quote:

....
public OnGameModeInit()
{
cash = CreatePickup(2976, 3, 0.0, 0.0, 9.0);
CreateStreamObject(16304, -1323.244019, -204.352386, 18.008726, 0.0000, 0.0000, 0.0000, 500);
CreateStreamObject(18450, -844.679993, 450.461609, 541.154785, 0.0000, 317.0282, 45.0000, 500);
CreateStreamObject(18450, -884.941528, 410.273834, 488.122314, 0.0000, 317.0282, 45.0000, 500);
CreateStreamObject(18450, -925.591064, 369.585541, 434.571167, 0.0000, 317.0282, 45.0000, 500);

}
Reply
#5

Quote:
Originally Posted by snabbo
Quote:
Originally Posted by [FG
otto ]
Quote:

C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : error 010: invalid function or declaration
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : error 021: symbol already defined: "CreateStreamObject"
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : error 010: invalid function or declaration
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : fatal error 107: too many error messages on one line

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


4 Errors.

Quote:

....
public OnGameModeInit()
{
cash = CreatePickup(2976, 3, 0.0, 0.0, 9.0);
CreateStreamObject(16304, -1323.244019, -204.352386, 18.008726, 0.0000, 0.0000, 0.0000, 500);
CreateStreamObject(18450, -844.679993, 450.461609, 541.154785, 0.0000, 317.0282, 45.0000, 500);
CreateStreamObject(18450, -884.941528, 410.273834, 488.122314, 0.0000, 317.0282, 45.0000, 500);
CreateStreamObject(18450, -925.591064, 369.585541, 434.571167, 0.0000, 317.0282, 45.0000, 500);

}
what?
Reply
#6

Quote:
Originally Posted by [FG
otto ]
Quote:
Originally Posted by snabbo
Quote:
Originally Posted by [FG
otto ]
Quote:

C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : error 010: invalid function or declaration
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : error 021: symbol already defined: "CreateStreamObject"
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : error 010: invalid function or declaration
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1906) : fatal error 107: too many error messages on one line

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


4 Errors.

Quote:

....
public OnGameModeInit()
{
cash = CreatePickup(2976, 3, 0.0, 0.0, 9.0);
CreateStreamObject(16304, -1323.244019, -204.352386, 18.008726, 0.0000, 0.0000, 0.0000, 500);
CreateStreamObject(18450, -844.679993, 450.461609, 541.154785, 0.0000, 317.0282, 45.0000, 500);
CreateStreamObject(18450, -884.941528, 410.273834, 488.122314, 0.0000, 317.0282, 45.0000, 500);
CreateStreamObject(18450, -925.591064, 369.585541, 434.571167, 0.0000, 317.0282, 45.0000, 500);

}
what?
Delete this CreateStreamObject and make it CreateObject
Reply
#7

but i use streamer :// and there is 1000+ objects so who will delete all
Reply
#8

Change this
pawn Код:
....
public OnGameModeInit()
{
  cash = CreatePickup(2976, 3, 0.0, 0.0, 9.0);
}
CreateStreamObject(16304, -1323.244019, -204.352386, 18.008726, 0.0000, 0.0000, 0.0000, 500);
CreateStreamObject(18450, -844.679993, 450.461609, 541.154785, 0.0000, 317.0282, 45.0000, 500);
CreateStreamObject(18450, -884.941528, 410.273834, 488.122314, 0.0000, 317.0282, 45.0000, 500);
CreateStreamObject(18450, -925.591064, 369.585541, 434.571167, 0.0000, 317.0282, 45.0000, 500);
...
To this
pawn Код:
....
public OnGameModeInit()
{
  cash = CreatePickup(2976, 3, 0.0, 0.0, 9.0);
  CreateStreamObject(16304, -1323.244019, -204.352386, 18.008726, 0.0000, 0.0000, 0.0000, 500);
  CreateStreamObject(18450, -844.679993, 450.461609, 541.154785, 0.0000, 317.0282, 45.0000, 500);
  CreateStreamObject(18450, -884.941528, 410.273834, 488.122314, 0.0000, 317.0282, 45.0000, 500);
  CreateStreamObject(18450, -925.591064, 369.585541, 434.571167, 0.0000, 317.0282, 45.0000, 500);
...
Reply
#9

Ok this now work , but when player pick up pickup he dont get money : //
Reply
#10

Код:
....
public OnGameModeInit()
{
  cash = CreatePickup(2976, 3, 0.0, 0.0, 9.0);
  CreateStreamObject(16304, -1323.244019, -204.352386, 18.008726, 0.0000, 0.0000, 0.0000, 500);
  CreateStreamObject(18450, -844.679993, 450.461609, 541.154785, 0.0000, 317.0282, 45.0000, 500);
  CreateStreamObject(18450, -884.941528, 410.273834, 488.122314, 0.0000, 317.0282, 45.0000, 500);
  CreateStreamObject(18450, -925.591064, 369.585541, 434.571167, 0.0000, 317.0282, 45.0000, 500);
  GivePlayerMoney(playerid, amount);
  ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)