AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   My Code Snippet to Kick a Player not Working (https://forums.alliedmods.net/showthread.php?t=17326)

Brad 08-29-2005 17:45

My Code Snippet to Kick a Player not Working
 
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) }

Zenith77 08-29-2005 18:56

post your entire code plz..that cant be it..and if it is...everything is wrong with it :/

XxAvalanchexX 08-29-2005 20:15

userid should come before LANG_PLAYER because the %d comes before the %L

Brad 08-29-2005 22:14

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.


All times are GMT -4. The time now is 14:26.

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