Thread: Fix Error Spam
View Single Post
B3none
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 07-12-2017 , 05:28   Re: [PAID][TF2] Fix Error Spam on Premium Mod
Reply With Quote #3

Looks like you're running your for loops from 0, for sourcemod when you're dealing with clients be sure to start from 1 because client index 0 is the server.

An example of this is...

PHP Code:
for (int client 1client <= MaxClientsclient++) {
   
PrintToChatAll("%N"client);

For the array errors, I presume you're formatting the arrays like this:

PHP Code:
char clientName[MAXPLAYERS]; 
The code I've seen doing things like this normally use:

PHP Code:
char clientName[MAXPLAYERS+1]; 
__________________

Last edited by B3none; 07-12-2017 at 05:31. Reason: Second resolution
B3none is offline