Raised This Month: $ Target: $400
 0% 

set_task with several (string) parameters?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
[Godmin] Gonzo
SourceMod Donor
Join Date: Jul 2004
Location: Godmins World
Old 09-10-2004 , 21:56   set_task with several (string) parameters?
Reply With Quote #1

I know what's wrong, it's my try to get thoose §/§$&%§!" variables into set_task, but how could I make it better?

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

My code instantly crashes when called on a dead client ("else" part)
__________________
[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