20.07.2009, 03:19
Okay i enter a car and it doesnt say any messages..
cCarID = 0 for first car and 1 for second :S it makes cars with CreateVehicle not AddStaticVehicle. What is problem?
EDIT : This is under OnPlayerEnterVehicle
pawn Код:
new string[128];
for(new c = 0; c < sizeof(Cars); c++)
{
if(vehicleid == Cars[c][cCarID] && (Cars[c][cOwner] == 1))
{
format(string,sizeof(string),"[ ! ] ID : %d ' %s ' Bought by : %s",Cars[c][cCarID],Cars[c][cDescription],Cars[c][cOwner]);
SendClientMessage(playerid,COLOR_GREY,string);
}
return 1;
}
EDIT : This is under OnPlayerEnterVehicle