RSSy MYGO.pl Opublikowano Styczeń 4, 2022 o 16:22 RSSy Udostępnij Opublikowano Styczeń 4, 2022 o 16:22 Hi, I have this error HTML Code: L 01/04/2022 - 19:43:52: Start of error session. L 01/04/2022 - 19:43:52: Info (map "gg_fear") (file "addons/amxmodx/logs/error_20220104.log") L 01/04/2022 - 19:43:52: [AMXX] Displaying debug trace (plugin "Reconnect.amxx") L 01/04/2022 - 19:43:52: [AMXX] Run time error 4: index out of bounds L 01/04/2022 - 19:43:52: [AMXX] [0] Reconnect.sma::client_disconnect (line 15) L 01/04/2022 - 19:43:52: [AMXX] [1] Reconnect.sma::addToReconnect (line 49) L 01/04/2022 - 19:43:52: [AMXX] [2] Reconnect.sma::client_disconnect (line 15) PHP Code: #include <amxmodx> new Float:reconnectTableTime[33]; new reconnectTable[33][33]; new bool:userReconnected[33]; public client_connect(id){ addToReconnect(id, 0) userReconnected[id] = false } public client_disconnect(id){ addToReconnect(id, 1) } public isInReconnect(id){ new auth[33]; get_user_authid(id, auth, sizeof(auth) ); for( new i=0;i<sizeof(reconnectTable); i ++ ){ if( equal(reconnectTable[i], auth) ){ if( get_gametime()-reconnectTableTime[i] < 10.0 ) return i; } } return -1; } public addToReconnect(id, type){ if( type == 0){ new i =isInReconnect(id); if( i!=-1 && type == 0){ userReconnected[id] =true; return 0; } }else{ new auth[33]; get_user_authid(id, auth, sizeof(auth) ); for( new i = 0; i< sizeof( reconnectTable ); i ++ ){ if( get_gametime()-reconnectTableTime[i] > 10.0 ){ copy( reconnectTable[ i ], sizeof( reconnectTable[ ] ), auth ); reconnectTableTime[i]=get_gametime(); break; } } } return 1; } Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi