[help] Error
Hello, got some problems
PHP Code:
PHP Code:
Then take box got this error the box remains on the ground i cant take it and go this error. |
Re: [help] Error
Show the code for all relevant variables.
|
Re: [help] Error
Quote:
PHP Code:
|
Re: [help] Error
And what did you do with them?
|
Re: [help] Error
Quote:
Now i cant take it. |
Re: [help] Error
not enough code. Show how the "randomDrop" and "data" works
|
Re: [help] Error
Quote:
{ if(!is_user_alive(player) || !can_pickup[player]) return; new randomDrop = random(ArraySize(SupplyBoxesContents)); new Data[SupplyContentsArray]; ArrayGetArray(SupplyBoxesContents, randomDrop, Data); ExecuteForward(Data[pickupForwardItem], forwardResult, player); if(get_pcvar_num(cvar_pickupTimes) > 0) new Data[SupplyContentsArray]; Data[box_id] = ArraySize(SupplyBoxesContents); Data[box_name] = BoxName; Data[pickupForwardItem] = CreateOneForward(plugin_id, "sb_pickup_event", FP_CELL); I can pm all code |
Re: [help] Error
Show the full error log.
Error possiblity either the array is invalid (SupplyBoxesContents) or the it's the item (randomDrop) or could be both. |
Re: [help] Error
Quote:
[AMXX] Displaying debug trace (plugin "supply_box.amxx", version "2.0") [AMXX] Run time error 10: native error (native "ArrayGetArray") [AMXX] [0] supply_box.sma::supply_box_pickup (line 389) |
Re: [help] Error
Did you create the array with ArrayCreate() before using ArrayGetArray() on it? Show the creation code.
Do the array contents that are stored inside match with the ones you're retrieving from it? |
All times are GMT -4. The time now is 19:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.