Weird Problem
#1

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.
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)