Raised This Month: $ Target: $400
 0% 

Assinging string to array


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Des12
Senior Member
Join Date: Jan 2005
Old 01-06-2006 , 22:48   Assinging string to array
Reply With Quote #1

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.
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 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 16:07.


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