21.01.2013, 09:50
(
Последний раз редактировалось Neil.; 04.02.2013 в 17:40.
)
fixed
There are 3 words there -_- which is the unidentified... At least put some effort in explaining.
|
new vehicleid = AHouseData[HouseID][VehicleIDs];
new HouseID = AVehicleData[vehicleid][BelongsToHouse];// Undefined symbol vehicleid
new HouseID = AVehicleData[MAX_VEHICLES][BelongsToHouse];// Try this
He did tell you if you'd actually look at the code.
@OP: Simply put the line of the error below the line underneath it : pawn Код:
|
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new currveh = GetPlayerVehicleID(playerid);
new sendername[MAX_PLAYER_NAME];
new vehicleid = AHouseData[HouseID][VehicleIDs];
new HouseID = AVehicleData[vehicleid][BelongsToHouse];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(newstate == PLAYER_STATE_DRIVER)
{
if(currveh == vehicleid)
{
if(strcmp(sendername, "Owner's name", false) == 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0xFF0000FF, "This is not your vehicle");
}
else
{
return 1;
}
}
}
return 1;
}