Raised This Month: $ Target: $400
 0% 

Array Must Be Indexed. :/


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Stormsys
Member
Join Date: Oct 2005
Old 10-16-2005 , 06:52   Array Must Be Indexed. :/
Reply With Quote #1

Code:
#include <amxmodx>
#include <amxmisc>
#include <amxconst>

	new data[2]
        new wmsg[225]
	new adminmsg[255]
public plugin_init......
........
....
......

....
public client_putinserver(id)
{
if(get_cvar_num("sshp_welcomemsg")==""){
		
		
	}else{

		if (!(get_user_flags(id)&ADMIN_LEVEL_F)) {
			format(wmsg, 224, "[Stormsys] %s", get_cvar_num("sshp_welcomemsg"))
			client_print(id, print_chat, wmsg)	
		}else{

   			new playername[32]
   			get_user_name(id, playername, 31)
			format(wmsg, 224, "[Stormsys] %s(Server Admin), Has Just Entered The Game", playername)
			client_print(id, print_chat, "Welcome Admin Enjoy Your Stay")	
			client_print(0, print_chat, wmsg)	
			
		}
	}

	return PLUGIN_CONTINUE
}
}

and it gives em erros in the vairialbe (array mst be indexed) how do i fix this?
Stormsys 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 23:39.


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