Array must be indexed
#6

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new ownername[50];
    new player1;
      new owner;
    owner = AVehicleData[vehicleid][Owner];// symbol is assigned a value that is never used: owner
    GetPlayerName(player1, ownername, sizeof(ownername));
    if(!strcmp(owner,ownername , false))//argument type mismatch(argument 1)
    {
        new string[128];
        format(string,sizeof(string), "You are not the owner of this vehicle");
        SendClientMessage(playerid, 0x0FF0000AA, string);
    }
return 1;
}
See errors above
Reply


Messages In This Thread
Array must be indexed - by Neil. - 20.01.2013, 09:37
Re: Array must be indexed - by InfiniTy. - 20.01.2013, 09:39
Re: Array must be indexed - by oliverrud - 20.01.2013, 09:48
Re: Array must be indexed - by Neil. - 20.01.2013, 09:52
Re: Array must be indexed - by InfiniTy. - 20.01.2013, 10:03
Re: Array must be indexed - by Neil. - 20.01.2013, 10:14
Re: Array must be indexed - by InfiniTy. - 20.01.2013, 10:24

Forum Jump:


Users browsing this thread: 1 Guest(s)