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

Hey guys, today I'm puzzled with something I don't even know is possible. I'm have a W.I.P dealership system that stores a player's car to his .ini file, and when he logs in it spawns the car. Now the problem is giving the car a unique ID so that when the player logs in it spawns with a unique ID something like this...
Код:
new PlayerName[MAX_PLAYER_NAME], CarUName[32];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(CarUName, sizeof(CarUName),"%s's%s", PlayerName, PlayerInfo[playerid][CarName]); //Will return Player'sCar
And then spawn the car like this...

Код:
CarUName = CreateVehicle(playerid, PlayerInfo[playerid][CarID], PlayerInfo[playerid][CarX], PlayerInfo[playerid][CarY], PlayerInfo[playerid][CarZ], PlayerInfo[playerid][CarA], PlayerInfo[playerid][CarCol1], PlayerInfo[playerid][CarCol2], 0);
But it gives errors lol, is there a way I can do this?
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)