10.06.2015, 06:31
When I Add this code
To OnPlayerConnect, It says in the server log when someone connects: Run Time Error 4...
But When its removed, No error appears, can anyone fix this thing?
NOTE: This is a created code, I am using PPC Housing with that created code, PPC Housing can be found Here.
pawn Код:
else if (strcmp(AHouseData[HouseID][CoOwner1], Name2, false) == 0)
{
// Add the HouseID to the player's account for faster reference later on
APlayerData[playerid][Houses][HouseSlot] = HouseID;
// Load housecars if they weren't loaded at FilterscriptInit
if (LoadCarsDuringFSInit == false)
HouseFile_LoadCars(HouseID);
// Select the next HouseSlot
HouseSlot++;
}
else if(strcmp(AHouseData[HouseID][CoOwner2], Name2, false) == 0)
{
// Add the HouseID to the player's account for faster reference later on
APlayerData[playerid][Houses][HouseSlot] = HouseID;
// Load housecars if they weren't loaded at FilterscriptInit
if (LoadCarsDuringFSInit == false)
HouseFile_LoadCars(HouseID);
// Select the next HouseSlot
HouseSlot++;
}
But When its removed, No error appears, can anyone fix this thing?
NOTE: This is a created code, I am using PPC Housing with that created code, PPC Housing can be found Here.