Thread: [Solved] String
View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-05-2019 , 19:00   Re: String
Reply With Quote #4

You are probably getting errors. Add ' debug' after your plugin in plugins.ini. You are better off with explaining what you are trying to do instead of asking for help in 'code talk'.
Code:
public saRs() {     for(new i; i < sizeof Map_Names; i++) { //This makes no sense, you are saying: Map_Check[1] = "give me a random number between 0 and the first character of a random map name"
        Map_Check[1] = random_num(0,Map_Names[random_num(0,i)][0])
              } //This will error if your server is not 100% full when it is called. Use get_players() to display it to only connected and alive/dead using flags.
    for(new c; c < get_maxplayers(); c++) OylamaMenu(c)
}

It's hard to tell what you're trying to do. Are you trying to make the maps appear in a random order in the menu each time it is displayed to a player?
__________________
Bugsy is offline