SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 17/05/2014, 04:35 PM   #1
Palashte
Little Clucker
 
Join Date: May 2014
Posts: 4
Reputation: 0
Default OnPlayerDeath crash

... delete it

Last edited by Palashte; 18/05/2014 at 04:01 PM.
Palashte is offline   Reply With Quote
Old 17/05/2014, 04:47 PM   #2
Palashte
Little Clucker
 
Join Date: May 2014
Posts: 4
Reputation: 0
Default Re: OnPlayerDeath crash

delete it ..

Last edited by Palashte; 18/05/2014 at 04:01 PM.
Palashte is offline   Reply With Quote
Old 17/05/2014, 04:49 PM   #3
driftpower
Banned
 
Join Date: Aug 2010
Location: /dev/null
Posts: 175
Reputation: 22
Default Re: OnPlayerDeath crash

shouldn't you check if PlayerInfo[killerid][pMember] is a valid playerid first?
driftpower is offline   Reply With Quote
Old 17/05/2014, 06:12 PM   #4
Palashte
Little Clucker
 
Join Date: May 2014
Posts: 4
Reputation: 0
Default Re: OnPlayerDeath crash

delete it

Last edited by Palashte; 18/05/2014 at 04:02 PM.
Palashte is offline   Reply With Quote
Old 17/05/2014, 06:21 PM   #5
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,828
Reputation: 1401
Default Re: OnPlayerDeath crash

driftpower is right. You must check if killerid is not INVALID_PLAYER_ID before using it inside arrays otherwise it will cause run time error 4.
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help in OnPlayerDeath Minatoo Scripting Help 15 12/05/2014 07:40 AM
setplayername server crash helpme [crash detect] bigtigerbeee Scripting Help 4 28/11/2013 12:23 AM
Fatal Game crash, Not client or server crash SourceCode Scripting Help 3 11/10/2011 05:13 PM
Spamming OnPlayerDeath causing the server to crash? Danny_Costelo Server Support 11 27/09/2009 09:17 AM


All times are GMT. The time now is 08:07 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.