undefined symbol
#5

Quote:
Originally Posted by LarzI
Посмотреть сообщение
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 Код:
new vehicleid = AHouseData[HouseID][VehicleIDs];
    new HouseID = AVehicleData[vehicleid][BelongsToHouse];// Undefined symbol vehicleid
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;
}
Tried that, and it says undefined symbol HouseID


Quote:
Originally Posted by [HRD]Mar1
Посмотреть сообщение
pawn Код:
new HouseID = AVehicleData[MAX_VEHICLES][BelongsToHouse];// Try this
array index is out of bounds
Reply


Messages In This Thread
undefined symbol - by Neil. - 21.01.2013, 09:50
Re: undefined symbol - by Infinity90 - 21.01.2013, 10:19
Re: undefined symbol - by LarzI - 21.01.2013, 10:37
Re : undefined symbol - by [HRD]Mar1 - 21.01.2013, 10:40
Re: Re : undefined symbol - by Neil. - 21.01.2013, 11:08

Forum Jump:


Users browsing this thread: 1 Guest(s)