Cammand keep crashing the server
#7

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
There are better alternatives than looping 1000 times. The correct way would be i < MAX_PLAYERS and not i <= MAX_PLAYERS. However, you can replace:
pawn Код:
for (new i = 0; i <= MAX_PLAYERS; i++)
with:
pawn Код:
for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
or better yet, use foreach (y_iterate).

---

I assume you pass "u" as format specifier again in SetTimeEx for KickPlayer. Find it/these parts and replace with "d" or "i".
Ok bro i have made the changes throughout the whole script and it has stopped the spamming error , which i thank you very much for your dedication and help but the kickplayer error stills happen only when i use the /tempban command, i am wondering if there is a problem with the command itself, because to my knowledge i dont see any and i made it from my head without looking at a tutorial because i cant find a good tutorial on a tempban system.

PHP код:
[01:45:50] [debugRun time error 6"Invalid instruction"
[01:45:50] [debug]  Unknown opcode 0x1062ebe at address 0x00000039
[01:45:50] [debugAMX backtrace:
[
01:45:50] [debug#0 00000039 in public OnPlayerDisconnect () at <unknown file>:0
[01:45:50] [debug#1 native Kick () from samp-server.exe
[01:45:50] [debug#2 00081580 in public KickPlayer (playerid=0) at ./comps/callbacks.pwn:3016 
As you can see i still get the error on the line 3016
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)