Registering a car to a players name
#9

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
You should probably look into an custom vehicle ownership before trying on your own, look at the post i made, describes how to insert an string into the CarOwner variable.

Also searching can help you out as others also struggled with similar problems.
pawn Код:
// The enum:
enum cInfo
{
     CarModel,
     CarOwner[50],
}
// The symbol:
new CarInfo[MAX_VEHICLES][cInfo];

// OnGameModeInit

for(new vehicleid; vehicleid < MAX_VEHICLES; vehicleid++)
{
     strmid(CarInfo[vehicleid][CarOwner], "CarOwner", 0, 50, 50);
}
Inserts the "CarOwner" string into the CarOwner variable.

This is just an example .. but should get you going.

use some printf's to experiment.
Reply


Messages In This Thread
Registering a car to a players name - by CSMajor - 19.10.2010, 02:43
Re: Registering a car to a players name - by CSMajor - 19.10.2010, 19:49
Re: Registering a car to a players name - by NewYorkRP - 19.10.2010, 19:52
Re: Registering a car to a players name - by Sascha - 19.10.2010, 20:29
Re: Registering a car to a players name - by Cameltoe - 19.10.2010, 21:04
Re: Registering a car to a players name - by CSMajor - 19.10.2010, 21:04
Re: Registering a car to a players name - by Cameltoe - 19.10.2010, 21:06
Re: Registering a car to a players name - by CSMajor - 19.10.2010, 21:06
Re: Registering a car to a players name - by Cameltoe - 19.10.2010, 21:09
Re: Registering a car to a players name - by CSMajor - 19.10.2010, 21:13
Re: Registering a car to a players name - by CSMajor - 19.10.2010, 21:32
Re: Registering a car to a players name - by Cameltoe - 19.10.2010, 21:34

Forum Jump:


Users browsing this thread: 3 Guest(s)