Pickup and Vehicle's not loading in my filterscript.
#1

Hello sa-mp Community. I've been away from programming for a while, and it seems like I'm doing something wrong.
I've added a few objects (Pickups, 3DTextLabels, Static Vehicles, and so on.) to a filterscript, which I'm trying to load on my test server. (Bare.pwn that comes with the sa-mp package.) I've added the filterscript to the server.cfg of course, and the objects still don't appear on my test server. I have 0.3x.

Here's a few objects that don't appear. (Please note: No objects appear, lol.)

pawn Code:
Create3DTextLabel("/takejob to become a Delivery Man.",COLOR_WHITE,2441.4690,-2122.8655,13.5469,40,0,0);
CreatePickup(1210,1,2441.4690,-2122.8655,13.5469,-1);
No vehicles appear either. (AddStaticVehicleEx)

Any help would be appreciated. Thanks a lot.
Reply
#2

Do you have #define FILTERSCRIPT? in the top of your script?

If you do paste this under OnFilterScriptInit
Reply
#3

Try setting the virtual world to 0.
Reply
#4

pawn Code:
CreatePickup(1210,1,2441.4690,-2122.8655,13.5469,-1); // -1 the virtual world??
here the virtual world is -1 which doesnt resemble with ur current virtual world so heres the correct one

pawn Code:
CreatePickup(1210,1,2441.4690,-2122.8655,13.5469,0);
if it doesntwork try to get the default virtual world when a player spawns and replace '0' with that
Reply
#5

The -1 will put the pickup in all Virtual Worlds. But I'll try a few suggestions you guys gave me. Thanks.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)