AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   When client connects (https://forums.alliedmods.net/showthread.php?t=162815)

Diegorkable 07-23-2011 09:41

When client connects
 
I have a public client_connect that does the following:

PHP Code:

/* Global */
new g_LeftKills[11]
/* Global */

public client_connect(id)
{
       
g_LeftKills[id] = 2


(ofcourse its not the whole public but I wrote down the main and relevant things.

When I do that there is a warning saying "tag mismatch", why is it?

Diegorkable 07-23-2011 09:51

Re: When client connects
 
nvm im stupid it was a bool: for some reason, ignore.

Hunter-Digital 07-23-2011 10:39

Re: When client connects
 
A side note, you might want to set the array size to 33 because your plugin will get errors when there are more than 10 players with 11 array size.

HBxander 07-23-2011 11:25

Re: When client connects
 
Quote:

Originally Posted by Hunter-Digital (Post 1516741)
A side note, you might want to set the array size to 33 because your plugin will get errors when there are more than 10 players with 11 array size.

Just quit him, i've told him 4 times the bug was the bool: g_IsStarted, in his plugin, he dont believe it :).
He think that whatever he say is correct. I bet he dont know alot about coding :).

Diegorkable 07-23-2011 11:30

Re: When client connects
 
lol you told me when?! :P

And yeah I know its sized to 11, I trust on that the mode will run on a 10 server slot.

nikhilgupta345 07-23-2011 11:32

Re: When client connects
 
Quote:

Originally Posted by Diegorkable (Post 1516785)
lol you told me when?! :P

And yeah I know its sized to 11, I trust on that the mode will run on a 10 server slot.

Still, I would suggest setting it to 33 just so you don't have to worry about server size.


All times are GMT -4. The time now is 01:10.

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