Raised This Month: $ Target: $400
 0% 

Menu issue


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 07-11-2010 , 13:44   Re: Menu issue
Reply With Quote #4

Dunno about your error, I'm lazy to read, but in the first view I noticed this (see highlighted lines):
Code:
public MenuWinner(Winner) {         new Menu = menu_create("\r[AMXX]\y Elige un teammate :","MenuWinnerHandler")         new Players[32]     new Num     get_players(Players,Num)         for(new i = 0;i <= Num;i++)     {         if(is_user_connected(i) && cs_get_user_team(i) == CS_TEAM_SPECTATOR)         {             new name[32]             get_user_name(i,name,31)                         new temp[32]             num_to_str(i,temp,31)                         menu_additem(Menu,name,temp,_,menu_makecallback("WinnerCallback"))         }     }         menu_setprop(Menu,MPROP_BACKNAME,"Atras")     menu_setprop(Menu,MPROP_NEXTNAME,"Siguiente^n")     menu_setprop(Menu,MPROP_EXITNAME,"Random")         menu_display(Winner,Menu) }
It's a major error creating variables in loops.
__________________
"There is no knowledge, that is not power"
fezh is offline
 



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 07:04.


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