03.08.2011, 17:06
I see you have the "owned" at your enumaration but you dont use it at OnPlayerStateChange
It should be like:
It should be like:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new ID = GetPlayerVehicleID(playerid);
if( CarInfo[ID][Owned] == 0 )
{
//...Cars for Sale code
}
else
{
//... Owned Cars code
}
return 1;
}