10.07.2011, 00:56
Hey guys, I made a filterscript that currently should only spawns randomly a Pickup. PAWNO says me that the code is right, but I can't see the Pickup in any place I go.
I want to precise that I put all the code in the callback "public OnFilterscriptInit()" so maybe that's why it doesn't work (but that should ).
Anyway, here is the code, what's wrong whith it?
Thanks.
I want to precise that I put all the code in the callback "public OnFilterscriptInit()" so maybe that's why it doesn't work (but that should ).
Anyway, here is the code, what's wrong whith it?
Код:
new Float:RandomSpawns[0][3] = { {331.0169,2592.1196,17.4321}, {-36.2954,2349.6096,24.3026}, {549.1324,2273.1812,34.7290}, {-393.5911,2488.7756,41.2797}, {-552.6669,2593.8730,53.9348}, {-246.0845,2580.4900,63.5703} }; new drugs; new rand = random(sizeof(RandomSpawns)); drugs = CreatePickup(1279, 1, RandomSpawns[rand][0], RandomSpawns[rand][1], RandomSpawns[rand][2], 0);