undefined symbol
#1

fixed
Reply
#2

There are 3 words there -_- which is the unidentified... At least put some effort in explaining.
Reply
#3

Quote:
Originally Posted by Infinity90
Посмотреть сообщение
There are 3 words there -_- which is the unidentified... At least put some effort in explaining.
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
Reply
#4

pawn Код:
new HouseID = AVehicleData[MAX_VEHICLES][BelongsToHouse];// Try this
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)