|
Author
|
Message
|
|
Veteran Member
Join Date: Feb 2013
Location: Rromania
|

10-01-2014
, 02:46
Re: randomize menus
|
#1
|
how about you create a new variable for each random menu content
like
new funtions[64][32]
functions[1]="give_usp(id)"
functions[2]="give_health(id)"
and in the handler function
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data); <--this is so you can store unique ids for each menu item above 1->8
for(int i=1;i<=MAX_FUNCTIONS(whatever);i++)
{
if(i==key)
{
functions[key]
}
}
I'm not sure this will work or even if you understand what I'm talking about
__________________
Meanwhile, in 2050:
Quote:
|
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
|
|
|
|
|
|