09.06.2012, 10:28
Hi all, I have a problem with GetVehicle Pos. This is my script:
When i arrive with this car and get on pickup, it say The car is too far, but money not give to me. What is the problem?..
Код:
if(pickupid == pickups[0][car]) { new Float:cpo[3]; GetVehiclePos(523,cpo[0],cpo[1],cpo[2]); if(!PlayerToPoint(7,playerid,cpo[0],cpo[1],cpo[2])) { SendClientMessage(playerid,RED,"* The car is too far."); return 1; } GivePlayerMoney(playerid, 500); return 1; }