15.10.2013, 20:09
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