SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 19/06/2012, 02:06 PM   #1
roleplay501
Little Clucker
 
Join Date: May 2009
Posts: 48
Reputation: 0
Default Crash detector is going crazy?!

What is wrong with this line?

GlobalPointPlayers[PlayerCapturing[playerid]]--;

It says that the array is out of bounds, but its not.

PlayerCapturing is defined MAX_PLAYERS
and GlobalPointPlayers is MAX_POINTS (the size is 10)

But im using this variable to check the current capturing point, Then its

PlayerCapturing = Pointid < 10; (Then its never higher than MAX_POINTS).
When im not capturing its INVALID_POINT which is 65534

Seems like this is to problem but its impossible since when im entering the CP the PlayerCapturing changes to Point id,
and When im leaving the CP its becomes INVALID_POINT but firstly its uses the PlayerCapturing to wipe the other required point variables and then PlayerCapturing becomes INVALID_POINT.

Then i can't understand what causes to crashdetector to be crazy...


[17:00:19] [debug] #0 00022044 in public OnPlayerLeaveDynamicCP (playerid=0, checkpointid=1):1104 (.pwn)
[17:00:19] [debug] #1 native Streamer_CallbackHook ()
[17:00:19] [debug] #2 00007f9c in public OnPlayerLeaveCheckpoint (playerid=0) :474 (Streamer.inc)
roleplay501 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
[FilterScript] [FS]Language detector jonrb Filterscripts 26 25/12/2012 11:38 PM
[FilterScript] [FS] Crazy Speedometer (Crazy Speedo) ~ [v1 - GER & EN] Littl3j0hNy Filterscripts 21 29/08/2012 01:34 PM
Holy shit, car crash made crazy teleport! Meta Bug Reports 6 31/03/2011 11:05 PM
Bug detector lithuania154 Client Support 2 15/07/2009 08:00 PM


All times are GMT. The time now is 04:00 PM.


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