[Ajuda] Manipular dado
#2

pawn Код:
new carro = GetPlayerVehicleID(playerid);

    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        new arroz;

        arroz = iCarInfo[carro][cID]; printf("Feijao- %d", arroz);
        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])
        {
            SendClientMessage(playerid, -1, "Este carro й teu");
        }
        else
        {
            RemovePlayerFromVehicle(playerid);
        }
    }

Faz debug, vamos ver se tem valor a variбvel
Reply


Messages In This Thread
Manipular dado - by bruxo00 - 15.10.2013, 20:05
Re: Manipular dado - by zSuYaNw - 15.10.2013, 20:09
Re: Manipular dado - by bruxo00 - 15.10.2013, 20:14
Re: Manipular dado - by zSuYaNw - 15.10.2013, 20:21
Re: Manipular dado - by bruxo00 - 15.10.2013, 20:28
Re: Manipular dado - by zSuYaNw - 15.10.2013, 20:43
Re: Manipular dado - by bruxo00 - 15.10.2013, 20:49
Re: Manipular dado - by bruxo00 - 16.10.2013, 14:59
Re: Manipular dado - by bruxo00 - 18.10.2013, 15:42

Forum Jump:


Users browsing this thread: 2 Guest(s)