vehicle spawner
#6

Quote:
Originally Posted by Gangster-rocks
Посмотреть сообщение
pawn Код:
if (!strcmp("/PoliceLS", cmdtext, true))
    {
        if(SpawnedVehicles[playerid] != 0) DestroyVehicle(SpawnedVehicles[playerid]);
        new Float[4]
        GetPlayerPos(playerid,Float[0],Float[1],Float[2]);
        GetPlayerFacingAngle (playerid,Float[3]);
        SpawnedVehicles[playerid] = CreateVehicle(596,Float[0],Float[1],Float[2],Float[3],-1,-1,60);
        PutPlayerInVehicle(playerid,SpawnedVehicles[playerid],0);
        GameTextForPlayer(playerid,"~h~~w~Police LS~n~~h~~w~ID:~h~~r~596",2500,1);
        return 1;
}
Complied and tested.
COMPLIED? Maybe, but probably not compiled.

pawn Код:
new Float[4]
GetPlayerPos(playerid,Float[0],Float[1],Float[2]);
GetPlayerFacingAngle (playerid,Float[3]);
My logic does not catch it - how can code like this work? There's even no line ending on line #1 there. Also I assume the variable will need a name, a simple Float won't do as that's a tag (Float.
Reply


Messages In This Thread
vehicle spawner - by Fires - 22.02.2012, 16:31
Re: hel vehicle spawner - by Opah - 24.06.2012, 23:51
Re: hel vehicle spawner - by Opah - 29.06.2012, 19:26
Re: vehicle spawner - by [A]ndrei - 29.06.2012, 21:01
Re: vehicle spawner - by Gangster-rocks - 29.06.2012, 21:14
Re: vehicle spawner - by AndreT - 29.06.2012, 21:29

Forum Jump:


Users browsing this thread: 2 Guest(s)