View Single Post
lnteresting
Junior Member
Join Date: Jan 2019
Old 02-27-2019 , 07:33   Re: I need help with my plugin
Reply With Quote #3

Quote:
Originally Posted by CliptonHeist View Post
Why are you doing this?

Code:
for(int i = 0; ID > 0; i++)
{
	userID[i] = ID % 10;
	ID = ID / 10;
}
You should only need to do this:
Code:
public void OnClientPostAdminCheck(int client)
{
	int ID = GetClientUserId(client);
	char userID[6];
	IntToString(ID, userID, sizeof(userID));

	CS_SetClientClanTag(client, userID);
}
Im new to coding so I didnt know about that I'll try doing that and see if it helps

Last edited by lnteresting; 02-27-2019 at 07:33.
lnteresting is offline