Garbage job won't throw
#7

Quote:
Originally Posted by CutX
Посмотреть сообщение
that's just wrong, the params of GetVehiclePos are: vehicleid, x, y, z
you're using the modelid instead od the vehicleid

do it like this, make a new var and assign the vehicleid of the car when the player types /starttrash to that var

example:
pawn Код:
new somevar[MAX_PLAYERS];

//in your starttrash cmd:
somevar[playerid] = GetVehicleID(playerid);

//in your /throw cmd, use somevar[playerid] instead of the model id:
GetVehiclePos(somevar[playerid],XXO, YXO, ZXO);
i'd also recommend making "HashTrash" a player specific variable. (as in HasTrash[playerid])
also, you should remove that filterscript stuff, like "OnFilterscriptInit"
you got stuff in OnGamemodeInit so im assuming that that's a GM not a FS.

you're also creating vehicles at the same spot, just sayin'
Well that guy in the last thread he said the vehicle id is 408 not model , so all my codes based on vehicle id 408
anyway he should store vehicle id on AddStaticVehicle in his case for ex
pawn Код:
new VEHXO = AddStaticVehicle(411, 2039.8792, 1339.7240, 10.6719, 179.8416, 0, 0);
and then
pawn Код:
GetVehiclePos(VEHXO,XXO, YXO, ZXO);
Reply


Messages In This Thread
Garbage job won't throw - by Mey6155 - 03.01.2014, 07:47
Re: Garbage job won't throw - by xo - 03.01.2014, 09:08
Re: Garbage job won't throw - by Mey6155 - 03.01.2014, 09:12
Re: Garbage job won't throw - by xo - 03.01.2014, 09:26
Re: Garbage job won't throw - by Mey6155 - 03.01.2014, 09:31
AW: Garbage job won't throw - by CutX - 03.01.2014, 09:35
Re: AW: Garbage job won't throw - by xo - 03.01.2014, 10:33
Re: Garbage job won't throw - by Mey6155 - 03.01.2014, 12:24
Re: Garbage job won't throw - by newbienoob - 03.01.2014, 12:28
Re: Garbage job won't throw - by Mey6155 - 03.01.2014, 12:29

Forum Jump:


Users browsing this thread: 1 Guest(s)