Garbage job won't throw
#6

Quote:
Originally Posted by Mey6155
Посмотреть сообщение
pawn Код:
GetVehiclePos(408, XXO, YXO, ZXO);
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'
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)