Manipulate data
#5

Hi. Thanks for the anwser.

That didn't work...

I put that like this on my gamemode:

pawn Код:
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        new arroz = INVALID_VEHICLE_ID;
        new carro = GetPlayerVehicleID(playerid);
       
        for(new i = 0; i != sizeof(iCarInfo); ++i)
        {
            if(iCarInfo[i][cID] == carro)
            {
                arroz = carro;
                break;
            }
        }
        //if(arroz == iPlayerInfo[playerid][Chave1] || arroz == iPlayerInfo[playerid][Chave2] || arroz == iPlayerInfo[playerid][Chave3] || arroz == iPlayerInfo[playerid][Chave4] || arroz == iPlayerInfo[playerid][ChaveEmp1] || arroz == iPlayerInfo[playerid][ChaveEmp2] || arroz == iPlayerInfo[playerid][ChaveEmp3])
        if(arroz == INVALID_VEHICLE_ID)
        {
            SendClientMessage(playerid, -1, "This is your car");
        }
        else
        {
            RemovePlayerFromVehicle(playerid);
        }
    }
Thanks!
Reply


Messages In This Thread
Manipulate data - by bruxo00 - 16.10.2013, 18:39
Re: Manipulate data - by park4bmx - 16.10.2013, 21:31
Re: Manipulate data - by bruxo00 - 17.10.2013, 12:21
Re: Manipulate data - by Misiur - 17.10.2013, 14:35
Re: Manipulate data - by bruxo00 - 17.10.2013, 17:22
Re: Manipulate data - by Konstantinos - 17.10.2013, 17:26
Re: Manipulate data - by bruxo00 - 17.10.2013, 17:52
Re: Manipulate data - by bruxo00 - 20.10.2013, 11:13

Forum Jump:


Users browsing this thread: 1 Guest(s)