Raised This Month: $ Target: $400
 0% 

My Code Snippet to Kick a Player not Working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 08-29-2005 , 17:45   My Code Snippet to Kick a Player not Working
Reply With Quote #1

Does anyone see anything inherently wrong with the following code snippet? It won't kick the player. It was working until I tried to multi-language it.
Code:
public kick_player(id, reasonMatch[]) {     new userid = get_user_userid(id)     server_cmd("kick #%d ^"%L^"", LANG_PLAYER, "REASON_KICKED", reasonMatch, userid) }
Brad is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 08-29-2005 , 18:56  
Reply With Quote #2

post your entire code plz..that cant be it..and if it is...everything is wrong with it :/
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-29-2005 , 20:15  
Reply With Quote #3

userid should come before LANG_PLAYER because the %d comes before the %L
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 08-29-2005 , 22:14  
Reply With Quote #4

Avalanche, thanks for the response. I'll have to play with it some more tomorrow morning. I had switched the order of those parameters in the first place for a reason, just can't remember what reason it was.
Brad is offline
Reply



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 14:26.


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