whats wrong here?
hello there i got this error from this code im not sure why but it was caus the player wasnt in the server?
[CSTRIKE] Player out of range <0> [AMXX]run time error 10: native error <native "cs_set_user_team"> [AMXX] [0] yap_menu.sma::random choose <line 690> code in question PHP Code:
|
Re: whats wrong here?
i think you tried to print the menu to the id 0, wich is the server itself
|
Re: whats wrong here?
You need to check if the user is connected for both situations (the if and the else if) but should be checked only once before everything else. However, there may be bigger issues because player should, idealy, never be 0. You will get the best solution by posting the whole code.
|
Re: whats wrong here?
k ty fysiks but well my whole code was the one i told you by pm, and post it in this threat
http://forums.alliedmods.net/showthread.php?t=159193 it does what i want but with some problems like this and others sometime in some specific situation |
Re: whats wrong here?
The problem is probably caused here (bad code or lack of code):
PHP Code:
However, you should probably rethink how you do the whole random_choose() function. |
Re: whats wrong here?
tnx , and so if you understand what im trying to do can help me to redone or an idea for helping me?
|
| All times are GMT -4. The time now is 23:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.