Raised This Month: $ Target: $400
 0% 

set_task with several (string) parameters?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
[Godmin] Gonzo
SourceMod Donor
Join Date: Jul 2004
Location: Godmins World
Old 09-10-2004 , 22:56  
Reply With Quote #2

Update: Changed it to the following:

Code:
public my_slay(param[4][256]) {   new id, steamid[35], text[256]   id=str_to_num(param[0])   format(steamid, 34, "%s", param[1])   format(text, 255, "%s", param[2])   new userid = get_user_userid(id)   client_print(id, print_chat, "Rufe slay auf")   if (is_user_alive(id))   {     client_print(id, print_chat, "SLAY!")     server_print("amx_slay %s", steamid)     server_cmd("amx_slay #%d", userid)   }   else   {     new myparam[4][256]     new temp[10]     num_to_str(id, temp, 9)     format(myparam[0], 10, temp)     format(myparam[1], 34, "%s", steamid)     format(myparam[2], 255, "%s", text)     server_print("Dead Client")     set_task(1.0, "my_slay", 4711+id, myparam)   }   return }

Now I get the compile error: muppets-filter.sma(587) : error 048: array dimensions do not match

Line 587 is the set_task line
__________________
[Godmin] Gonzo is offline
Send a message via ICQ to [Godmin] Gonzo
 



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:10.


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