Code not working correctly
Compiles without error (1 warning though, but it works)
Some code taken from Auto Join on Connect by VEN
Spoiler
It seems like set_task in plugin_init isn't working at all. Also game description doesn't change. |
Re: Code not working correctly
Dunno about game desc, try to see if it's still for other updated servers, code is ok though.
About task, nothing is executed because plugin is throwing an error on line : Code:
Do never loop like this, use get_players to fill an array with connected players indexes, then loop that array. Also, seems that your code is a bit hazardous, you should double check its logic and behavior. |
Re: Code not working correctly
Quote:
Code:
Quote:
I'm new at scripting. Though other functions are working the way they should. |
Re: Code not working correctly
for ( new i = 0 ; i < 32 ; i++)
-> for ( new i = 0 ; i < num ; i++) else you encounter the same problem |
Re: Code not working correctly
Nope, still nothing.
This time I tested one thing: Code:
But even that not coming in chat. |
Re: Code not working correctly
Quote:
|
Re: Code not working correctly
Puts debugs (prints or something) at each steps of the function and see where it is exit.
Anyway, i doubt there can be 2 connected players 5 secs after map change. |
Re: Code not working correctly
sry for late reply.
Code:
Just for testing I removed all the matter out of that function except the printing, and it still won't print. I don't have any idea why its not working when there is no error while compiling. Please help. |
Re: Code not working correctly
Add something like this :
PHP Code:
|
Re: Code not working correctly
PHP Code:
|
| All times are GMT -4. The time now is 06:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.