Cammand keep crashing the server
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
I can see the mistake now.
Код:
SetTimerEx("BanPlayer",200,false,"ud", id,2);
"u" is only a specifier for sscanf, you pass "d" or "i" for integers in SetTimerEx function. About the run time error, post Checker public function. Most likely it is a loop that goes on like this:
Код:
for (new i = 0; i <= MAX_PLAYERS; i++)
The equal sign would cause it as an array with size of 1000 has valid indexes betweeen 0 and 999. But I can't be sure without looking at the code.

PS: You didn't compile with debug info though, that would give the exact line and would be easier to track down.
Ok i compiled with the debug and it says the error is in this line 2163
PHP код:
    for (new 0<= MAX_PLAYERSi++)
    {
          new 
eveh GetPlayerVehicleID(i);
           if(
PlayerTemp[i][isevent] == && eveh != EventCars[i] || PlayerTemp[i][isevent] == && eveh != EventCars[i])// line with the error
           

also the other error about when i use the command
PHP код:
 [debugAMX backtrace:
[
22:27:09] [debug#0 00000030 in public OnPlayerDisconnect () at <unknown file>:0
[22:27:09] [debug#1 native Kick () from samp-server.exe
[22:27:09] [debug#2 00081560 in public KickPlayer (playerid=0) at ./comps/callbacks.pwn:3016
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public KickPlayer(playerid)
{
    
Kick(playerid);// this is line 3016
    
return 1;

Reply


Messages In This Thread
Cammand keep crashing the server - by 1fret - 18.11.2017, 03:01
Re: Cammand keep crashing the server - by Konstantinos - 18.11.2017, 08:42
Re: Cammand keep crashing the server - by 1fret - 18.11.2017, 14:47
Re: Cammand keep crashing the server - by Konstantinos - 18.11.2017, 14:54
Re: Cammand keep crashing the server - by 1fret - 18.11.2017, 15:39
Re: Cammand keep crashing the server - by Konstantinos - 18.11.2017, 16:16
Re: Cammand keep crashing the server - by 1fret - 18.11.2017, 19:25
Re: Cammand keep crashing the server - by Konstantinos - 18.11.2017, 19:36
Re: Cammand keep crashing the server - by 1fret - 18.11.2017, 20:05
Re: Cammand keep crashing the server - by Konstantinos - 18.11.2017, 20:09

Forum Jump:


Users browsing this thread: 1 Guest(s)