02.10.2011, 12:32
pawn Код:
stock GetCarIDFromPlayer_Enum(playerid)
{
for(new i=1; i<MAX_VEHICLES; i++)//if you use a sizeof you dont will get all the vehicles becouse you must have other cars before the owned vehicles...
{
if(!strcmp(CarInfo[i][vOwner], PlayerName(playerid),false)) return i;
}
return 0;
}
if(GetCarIDFromPlayer_Enum(playerid) == 0)//he dont have a car...