Car spawn at the wrong place?
#9

Before SetPlayerPos: new Float,Float:y,Float:z;

like
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);
        new Float:x,Float:y,Float:z; //That line. Else x,y,z are seen as values of zero (0)
        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!");
            }
Reply


Messages In This Thread
Car spawn at the wrong place? - by Jochemd - 20.04.2010, 15:58
Re: Car spawn at the wrong place? - by Jeffry - 20.04.2010, 16:07
Re: Car spawn at the wrong place? - by Jochemd - 20.04.2010, 16:11
Re: Car spawn at the wrong place? - by Jeffry - 20.04.2010, 16:33
Re: Car spawn at the wrong place? - by DJDhan - 20.04.2010, 16:36
Re: Car spawn at the wrong place? - by FUNExtreme - 20.04.2010, 17:10
Re: Car spawn at the wrong place? - by adsy - 20.04.2010, 17:33
Re: Car spawn at the wrong place? - by DJDhan - 20.04.2010, 18:34
Re: Car spawn at the wrong place? - by Hiddos - 20.04.2010, 18:39
Re: Car spawn at the wrong place? - by Jochemd - 21.04.2010, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)