Raised This Month: $ Target: $400
 0% 

Solved String


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 17:18.


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