Weird Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Weird Problem (
/showthread.php?tid=577241)
Weird Problem -
Youssef221 - 10.06.2015
When I Add this code
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++;
}
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.
Re: Weird Problem -
SpaceX - 10.06.2015
Can you post the full error log?
So, I can try to pinpoint which exact line in your code is having problems.
It's really hard to fix your code this way.