OnPlayerPickupDynamicCP Crashing client
#1

HI, why this code crashing player's game, when a player pickuppickup?

pawn Код:
for (new i=1; i < MAX_HOUSES; i++)
        {
            if (pickupid == Houses[i][house_pickup])
            {
                PVar[playerid][last_house_entrance] = i;
                if (IsHouseOwnedByPlayer(playerid, i)) GameTextForPlayer(playerid, "~y~Press ~r~~k~~ENTER~ ~y~to open!", 3000, 3);
                break;
            }
        }
Reply
#2

Try:
pawn Код:
new i = 0;
In your loop.
Reply
#3

I guess you mean OnPlayerPickUpDynamicPickup?

Btw, show your stocks.
Reply
#4

Fixed, it was something with gametextforplayer
Reply
#5

It would've been:
Код:
~ENTER~
You can't leave stray tildes in textdraws/game texts as they crash players.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)