SA-MP Forums Archive
Error when death. - 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: Error when death. (/showthread.php?tid=280398)



Error when death. - wouter0100 - 31.08.2011

Hey,

I got a White screen with something in the middle 'Bountrys world' or something
I have this Death Code:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    Playerdata[playerid][Death]++;
    Playerdata[killerid][Kill]++;
    SetPlayerHealth(playerid, 100);
    SetSpawnInfo(playerid, 0, Playerdata[playerid][Skin], 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
    SpawnPlayer(playerid);
    return 0;
}
Thanks!


Re: Error when death. - Jack_Leslie - 31.08.2011

The co-ordinates for the spawn are outside the foundries.


Re: Error when death. - grand.Theft.Otto - 31.08.2011

" Stay Within The World Boundaries " ?

Search for this in your script:

SetPlayerWorldBounds and remove it

EDIT: Jack may be right too ^


Re: Error when death. - wouter0100 - 31.08.2011

@Jack_Leslie Foundries = ?, I use the same script for when a player spawns (after login) and that works.
@grand.Theft.Otto Yea, that text, but when i search Bounds, nothing comes (text not found)


Re: Error when death. - Jack_Leslie - 31.08.2011

I mean boundries. Check what filterscripts you have... this happened to me once but it just stopped all of a sudden.