20.04.2010, 15:58
Hello,
I guess some people saw my carspawn topic before. Now I updated it and there is a weird error in it. I show you.
The coцrdinates at SetPlayerPos are outside Wang Cars. I set GetPlayerPos so it gets the coordinates where the player is outside. Then the sound and freeze comes. Now the point: The car should spawn near GetPlayerPos. But it doesnt it spawns at my old coцrdinates! DOes someone know this bug? And how to fix it?
Regards, Jochem
BTW: I know I could use the same coцrds as SetPlayerPos. I dont want it; it needs to be simply to modify!
I guess some people saw my carspawn topic before. Now I updated it and there is a weird error in it. I show you.
pawn Код:
case 5:
{
if(GetPlayerMoney(playerid) < 40000)
return SendClientMessage(playerid,COLOR_RED,"--> You don't have $40000!") && SetPlayerPos(playerid,-1979.8074,270.1521,35.1719) && TogglePlayerControllable(playerid,1);
GivePlayerMoney(playerid,-40000);
SetPlayerPos(playerid,-1979.8074,270.1521,35.1719);
GetPlayerPos(playerid,x,y,z);
PlayerPlaySound(playerid,1058,0,0,0);
TogglePlayerControllable(playerid,1);
CreateVehicle(402,x+2,y+2,z+2,0,0,0,0);
return SendClientMessage(playerid, COLOR_YELLOW, "--> You bought a Buffalo!");
}
Regards, Jochem
BTW: I know I could use the same coцrds as SetPlayerPos. I dont want it; it needs to be simply to modify!