18.12.2016, 14:00
Esse sistema abaixo se encontra com problemas, eu retiro essa parte do script e funciona tudo abaixo dele corretamente, caso eu coloco o script no gamemode novamente, ele torna a nгo carregar as funзхes abaixo.
Ou seja, abaixo do script nгo funciona mais nada, por que?
Ou seja, abaixo do script nгo funciona mais nada, por que?
PHP код:
if(GetPVarInt(playerid, "CarKey1") != SCRIPT_CARS)
{
if(CarInfo[GetPVarInt(playerid, "CarKey1")][cOwned] == 0) SetPVarInt(playerid, "CarKey1", SCRIPT_CARS);
if(CarInfo[GetPVarInt(playerid, "CarKey1")][cModel] == 48) CarInfo[GetPVarInt(playerid, "CarKey1")][cModel]=483;
//if(strcmp(CarInfo[GetPVarInt(playerid, "CarKey1")][cOwner], PlayerName(playerid), true) == 0) CallRemoteFunction("GiveAchievement", "iii", playerid, 3, 0);
}
if(GetPVarInt(playerid, "CarKey2") != SCRIPT_CARS)
{
if(CarInfo[GetPVarInt(playerid, "CarKey2")][cOwned] == 0) SetPVarInt(playerid, "CarKey2", SCRIPT_CARS);
if(CarInfo[GetPVarInt(playerid, "CarKey1")][cModel] == 48) CarInfo[GetPVarInt(playerid, "CarKey1")][cModel]=483;
//if(strcmp(CarInfo[GetPVarInt(playerid, "CarKey2")][cOwner], PlayerName(playerid), true) == 0) CallRemoteFunction("GiveAchievement", "iii", playerid, 3, 0);
}
if(GetPVarInt(playerid, "CarKey3") != SCRIPT_CARS)
{
if(CarInfo[GetPVarInt(playerid, "CarKey3")][cOwned] == 0) SetPVarInt(playerid, "CarKey3", SCRIPT_CARS);
if(CarInfo[GetPVarInt(playerid, "CarKey1")][cModel] == 48) CarInfo[GetPVarInt(playerid, "CarKey1")][cModel]=483;
//if(strcmp(CarInfo[GetPVarInt(playerid, "CarKey3")][cOwner], PlayerName(playerid), true) == 0) CallRemoteFunction("GiveAchievement", "iii", playerid, 3, 0);
}