30.11.2018, 12:52
(
Последний раз редактировалось rollercaster; 30.11.2018 в 15:24.
)
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?
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;
}