Add Player's name to car's name?
#2

I did it otherwise. So, whenever a player buys a car, it makes a .ini file to store all his data. Make a new line named CarID or something. Then, when a player buys a car/connects, you make a new car. But store that under a variable, something like this:

pawn Код:
new carid = CreateVehicle(... //your things here)
Then you write the carid in the .ini file of the player, like:

pawn Код:
INI_WriteInt(File,"CarID", carid);
Something like that. Now the CarID in the player's .ini file is an unique car id! (I think..)
Reply


Messages In This Thread
Add Player's name to car's name? - by Hyperfire - 12.02.2013, 09:53
Re: Add Player's name to car's name? - by Da_Noob - 12.02.2013, 10:45
Re: Add Player's name to car's name? - by Jstylezzz - 12.02.2013, 11:03
Re: Add Player's name to car's name? - by DrDoom151 - 12.02.2013, 11:07
Re: Add Player's name to car's name? - by Jstylezzz - 12.02.2013, 11:08
Re: Add Player's name to car's name? - by Hyperfire - 12.02.2013, 12:46
Re: Add Player's name to car's name? - by Neil. - 12.02.2013, 12:51
Re: Add Player's name to car's name? - by Hyperfire - 12.02.2013, 20:33
Re: Add Player's name to car's name? - by Neil. - 12.02.2013, 21:07
Re: Add Player's name to car's name? - by Hyperfire - 12.02.2013, 21:38

Forum Jump:


Users browsing this thread: 1 Guest(s)