Simple function question..?
#4

If you want to save the vehicle ID to an enum then its pretty simple, do something like this:

pawn Код:
else if(PlayerInfo[playerid][pCar] == 402)
{
    new veh = CreateVehicle(402,-2467.9888,2223.9019,4.5598,1,1,1,0);
    PutPlayerInVehicle(playerid, veh, 0);
    GameTextForPlayer(playerid,"~h~~w~You brought a ~n~~h~~w~~h~~r~ Buffalo!",2500,1);
    new carid = GetPlayerVehicleID(playerid);
    Playerinfo[playerid][pCarID] = carid;
}
This is untested, let me know your results.
Reply


Messages In This Thread
Simple function question..? - by MatZZPL - 06.11.2012, 14:13
Re: Simple function question..? - by redreaper666 - 06.11.2012, 14:18
Re: Simple function question..? - by MatZZPL - 06.11.2012, 14:58
Re: Simple function question..? - by Abreezy - 06.11.2012, 17:02
Re: Simple function question..? - by MatZZPL - 06.11.2012, 20:14

Forum Jump:


Users browsing this thread: 1 Guest(s)