[HELP] Run time error 10:

M

Michell

Guest
#1
L 11/15/2015 - 07:18:38: Info (map "de_inferno") (file "addons/amxmodx/logs/error_20151115.log")
L 11/15/2015 - 07:18:38: Plugin called menu_display when item=MENU_EXIT
L 11/15/2015 - 07:18:38: [AMXX] Displaying debug trace (plugin "premier.amxx", version "2016")
L 11/15/2015 - 07:18:38: [AMXX] Run time error 10: native error (native "menu_display")
L 11/15/2015 - 07:18:38: [AMXX] [0] premier.sma::StartVote (line 4253)



PHP Code:
public StartVote(){
getmaps()
new
rnd
while (gDoneMaps != 4 && gMapsCounter > 0)
{
rnd = random(gMapsCounter)
copy(gMapsChosen[gDoneMaps++], 19, gMapsAvailable[rnd])
gMapsAvailable[rnd] = gMapsAvailable[--gMapsCounter]
}

new
title[64], extend[64]
formatex(title, charsmax(title), "\y[ \wMenu - \rVoteMap \y]")
formatex(extend, charsmax(extend), "\yExtender mapa atual")
gGVoteMenu = menu_create(title, "votemap");

new
num[11]
for(new
i = 0; i < gDoneMaps; i++) {
num_to_str(i, num, 10)
menu_additem(gGVoteMenu, gMapsChosen[i], num, 0)
}
menu_additem(gGVoteMenu, extend, "4", 0)
menu_setprop(gGVoteMenu, MPROP_EXIT, MEXIT_NEVER)

new
players[32], pnum, tempid;
get_players(players, pnum, "ch");
for( new
i; i<pnum; i++ ) {
tempid = players[i];
client_print_color(0,print_team_grey,"%s Selecione o proximo mapa.",PUG_szHead)
menu_display(tempid, gGVoteMenu)
}
client_cmd(0, "spk ^"get red(e80) ninety(s45) to check(e20) use bay(s18) mass(e42) cap(s50)^"")
new
taskId = NewTaskID()
set_task(10.0, "EndVote", taskId);
return
PLUGIN_HANDLED;
}
 
   
   
   
Top