Hello, here is some of my code:
Code:
//in global
new g_customTeam[33] = 0
//in plugin init
register_concmd("gangwars_maketeam","makeTeam",0," <team name>")
//later on
public makeTeam(id) {
new message[192]
read_args(message,191)
remove_quotes(message)
//set_msg_arg_string ( message, g_customTeam[id] )
//set_msg_arg_string ( g_customTeam[id], message )
g_customTeam[id] += message
//code continues
I am having problems with "g_customTeam[id] = message". Sitatuion:
A player times in gangwars_maketeam Dest's Team
I tried to make it store the user's team as Dest's Team, but...
-with "g_customTeam[id] = message" it just comes out blank.
-with "set_msg_arg_string ( message, g_customTeam[id] )" it comes out as arguemnt mismatch
-with "g_customTeam[id] += message" it says message must be indexed.
I really do not know what to do, tried search and it came out with g_customTeam[id] += message, but I do not know where to go now.
__________________