OnPlayerPickupDynamicCP Crashing client - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnPlayerPickupDynamicCP Crashing client (
/showthread.php?tid=248766)
OnPlayerPickupDynamicCP Crashing client -
ajwar - 15.04.2011
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;
}
}
Re: OnPlayerPickupDynamicCP Crashing client -
Stigg - 15.04.2011
Try:
In your loop.
Re: OnPlayerPickupDynamicCP Crashing client -
Jochemd - 15.04.2011
I guess you mean OnPlayerPickUpDynamicPickup?
Btw, show your stocks.
Re: OnPlayerPickupDynamicCP Crashing client -
ajwar - 15.04.2011
Fixed, it was something with gametextforplayer
Re: OnPlayerPickupDynamicCP Crashing client -
Calgon - 15.04.2011
It would've been:
You can't leave stray tildes in textdraws/game texts as they crash players.