12.02.2013, 09:53
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...
And then spawn the car like this...
But it gives errors lol, is there a way I can do 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
Код:
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);