Raised This Month: $ Target: $400
 0% 

Could this code crash server?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Miczu
Member
Join Date: Jul 2007
Old 08-28-2007 , 14:33   Could this code crash server?
Reply With Quote #1

I made a plug to prewent all players from changing nick in game
But 2 from 3 servers with this plug got crashed, and last one has some problems (kicing players - svg_bad and other errors ). And i need to know, if i could make this problem

Code:
#include <amxmod>
#include <amxmisc>
new szName[33][36]

public plugin_init() {
	register_plugin("","","")
}

public client_connect(id)
{
	get_user_name(id , szName[id] , 35)
}

public client_infochanged(id)
{
	SetName(id)
}

stock SetName( id )
{
	client_cmd(id , "name ^"%s^"" , szName[id]);
	client_cmd(id , "setinfo name ^"%s^"" , szName[id]);
}
This is all of the code. (sorry for my english).
Miczu 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:08.


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