Raised This Month: $51 Target: $400
 12% 

Please help :)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bauer224
BANNED
Join Date: Sep 2016
Location: https://t.me/pump_upp
Old 01-15-2018 , 16:17   Please help :)
Reply With Quote #1

Please help :


Spoiler
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague40.sma - 114 views - 379.6 KB)
bauer224 is offline
Send a message via ICQ to bauer224 Send a message via AIM to bauer224 Send a message via Yahoo to bauer224
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-15-2018 , 16:35   Re: Please help :)
Reply With Quote #2

Please use proper thread titles if you want help.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-15-2018 , 16:46   Re: Please help :)
Reply With Quote #3

Editing a huge code without any knowledge brings you this.
__________________
edon1337 is offline
Saint Sinner
Senior Member
Join Date: Feb 2016
Old 01-15-2018 , 17:57   Re: Please help :)
Reply With Quote #4

if ( g_zombie[ id ] || g_survivor[ id ] || g_nemesis[ id ] )
Saint Sinner is offline
bauer224
BANNED
Join Date: Sep 2016
Location: https://t.me/pump_upp
Old 01-16-2018 , 11:55   Re: Please help :)
Reply With Quote #5

error :
Spoiler


with : if ( g_zombie[ id ] || g_survivor[ id ] || g_nemesis[ id ] )

Last edited by bauer224; 01-16-2018 at 11:55.
bauer224 is offline
Send a message via ICQ to bauer224 Send a message via AIM to bauer224 Send a message via Yahoo to bauer224
bauer224
BANNED
Join Date: Sep 2016
Location: https://t.me/pump_upp
Old 01-16-2018 , 11:58   Re: Please help :)
Reply With Quote #6

Quote:
Originally Posted by edon1337 View Post
Editing a huge code without any knowledge brings you this.
Sorry ... I am beginner
bauer224 is offline
Send a message via ICQ to bauer224 Send a message via AIM to bauer224 Send a message via Yahoo to bauer224
bauer224
BANNED
Join Date: Sep 2016
Location: https://t.me/pump_upp
Old 01-17-2018 , 04:58   Re: Please help :)
Reply With Quote #7

Help please
bauer224 is offline
Send a message via ICQ to bauer224 Send a message via AIM to bauer224 Send a message via Yahoo to bauer224
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 01-19-2018 , 11:50   Re: Please help :)
Reply With Quote #8

7707:
set_task(0.2, "gunmenu", id+TASK_SPAWN)
-->
set_task(0.2, "gunmenu", id)
Black Rose is offline
bauer224
BANNED
Join Date: Sep 2016
Location: https://t.me/pump_upp
Old 01-20-2018 , 03:52   Re: Please help :)
Reply With Quote #9

not working with:

if ( g_zombie[ id ] || g_survivor[ id ] || g_nemesis[ id ] )

set_task(0.2, "gunmenu", id)

Spoiler
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague40.sma - 565 views - 379.9 KB)
bauer224 is offline
Send a message via ICQ to bauer224 Send a message via AIM to bauer224 Send a message via Yahoo to bauer224
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 01-20-2018 , 09:17   Re: Please help :)
Reply With Quote #10

I can help you as long as you have runtime errors, but when things stop working without errors you're on your own.
If you can't follow a simple error message to the cause, don't edit a plugin of this size.

Code:
L 01/20/2018 - 09:49:17: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx")
L 01/20/2018 - 09:49:17: [AMXX] Run time error 4: index out of bounds 
L 01/20/2018 - 09:49:17: [AMXX] [0] fw1g1cf1.sma.p::gunmenu (line 6069)
2192:
set_task(0.2, "gunmenu", id+TASK_SPAWN)
->
set_task(0.2, "gunmenu", id)




Code:
L 01/20/2018 - 09:46:25: Invalid cellvector handle provided (12:0:0)
L 01/20/2018 - 09:46:25: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx")
L 01/20/2018 - 09:46:25: [AMXX] Run time error 10: native error (native "ArrayGetString")
L 01/20/2018 - 09:46:25: [AMXX] [0] 62by0a20.sma.p::logevent_round_end (line 2020)
If i remember correctly it's (ArrayHandle:ArraySize:IndexRequested).
Your array is empty. You have to account for that.

2015-2047:
Code:
    static sound[64]     if (!fnGetZombies())     {                 // Play win sound and increase score         ArrayGetString(sound_win_humans, random_num(0, ArraySize(sound_win_humans) - 1), sound, charsmax(sound))         PlaySound(sound)         g_scorehumans++                 // Round end forward         ExecuteForward(g_fwRoundEnd, g_fwDummyResult, ZP_TEAM_HUMAN);     }     else if (!fnGetHumans())     {                 // Play win sound and increase score         ArrayGetString(sound_win_zombies, random_num(0, ArraySize(sound_win_zombies) - 1), sound, charsmax(sound))         PlaySound(sound)         g_scorezombies++                 // Round end forward         ExecuteForward(g_fwRoundEnd, g_fwDummyResult, ZP_TEAM_ZOMBIE);     }     else     {                 // Play win sound         ArrayGetString(sound_win_no_one, random_num(0, ArraySize(sound_win_no_one) - 1), sound, charsmax(sound))         PlaySound(sound)                 // Round end forward         ExecuteForward(g_fwRoundEnd, g_fwDummyResult, ZP_TEAM_NO_ONE);     }
-->
Code:
    static sound[64], soundsize;     if (!fnGetZombies())     {         // Play win sound and increase score         if ( ( soundsize = ArraySize(sound_win_humans) ) ) {             ArrayGetString(sound_win_humans, random(soundsize), sound, charsmax(sound))             PlaySound(sound)         }         g_scorehumans++         // Round end forward         ExecuteForward(g_fwRoundEnd, g_fwDummyResult, ZP_TEAM_HUMAN);     }     else if (!fnGetHumans())     {         // Play win sound and increase score         if ( ( soundsize = ArraySize(sound_win_zombies) ) ) {             ArrayGetString(sound_win_zombies, random(soundsize), sound, charsmax(sound))             PlaySound(sound)         }         g_scorezombies++         // Round end forward         ExecuteForward(g_fwRoundEnd, g_fwDummyResult, ZP_TEAM_ZOMBIE);     }     else     {         // Play win sound         if ( ( soundsize = ArraySize(sound_win_no_one) ) ) {             ArrayGetString(sound_win_no_one, random(soundsize), sound, charsmax(sound))             PlaySound(sound)         }         // Round end forward         ExecuteForward(g_fwRoundEnd, g_fwDummyResult, ZP_TEAM_NO_ONE);     }

Last edited by Black Rose; 01-20-2018 at 09:27.
Black Rose is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 23:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode