Problem Get Player in personal vehicle
#6

I did well?
To return pcarkey id ( PlayerInfo[playerid][pCarPers][0], PlayerInfo[playerid][pCarPers][1], etc.. )
it is possible for multiple players to have trouble checking?

Код HTML:
stock CarOwner2(playerid, vehicleid)
{
	new CarKeY = 0;
	for(new i = 0; i < 10; i++)
	{
		if(CarInfo[PlayerInfo[playerid][pCarPers][i]][cSpawn] > 0 && vehicleid == CarInfo[PlayerInfo[playerid][pCarPers][i]][cSpawn])
		{
		    CarKeY = PlayerInfo[playerid][pCarPers][i];
	  		break;
		}
	}
	return CarKeY;
}
Reply


Messages In This Thread
Problem Get Player in personal vehicle - by rollercaster - 26.11.2018, 16:01
Re: Problem Get Player in personal vehicle - by rollercaster - 27.11.2018, 07:02
Re: Problem Get Player in personal vehicle - by AmirSavand - 27.11.2018, 13:34
Re: Problem Get Player in personal vehicle - by rollercaster - 29.11.2018, 14:46
Re: Problem Get Player in personal vehicle - by Kaliber - 30.11.2018, 08:45
Re: Problem Get Player in personal vehicle - by rollercaster - 30.11.2018, 12:52

Forum Jump:


Users browsing this thread: 4 Guest(s)