21.01.2013, 11:08
Quote:
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 Код:
|
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;
}
array index is out of bounds