SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 15/02/2020, 11:22 AM   #1
murilo2929
Huge Clucker
 
Join Date: Oct 2018
Posts: 216
Reputation: 2
Question Error

Então estou com esse problema, sempre quando o player morre no servidor o jogo trava e esse erro aparece no console.



E essa e a public

Code:
public OnPlayerSpawn(playerid) {
	SetPlayerTeam(playerid, 1);
	KillTimer(TimerIngresoTiempo[playerid]);
    NoSeLogeo[playerid] = 1;
	if(!IsPlayerConnectedEx(playerid) && !IsPlayerNPC(playerid)) return(_Mensaje(playerid, 0, "3", "Foi expulso, não entrou corretamente."), Kick(playerid));
	_OnPlayerSpawn(playerid);
	return 1;
}
murilo2929 is offline   Reply With Quote
Old 16/02/2020, 10:11 PM   #2
rjjj
Huge Clucker
 
rjjj's Avatar
 
Join Date: Jan 2014
Location: Acre, Brasil
Posts: 261
Reputation: 204
Default Re: Error

Tem que ser feita uma depuração das funções executadas dentro do OnPlayerSpawn .



O crash é por acesso a um índice inválido de array, como exemplo[i], com i de valor -1. Provavelmente é um código de loop que está causando isso.



Espero ter ajudado .
__________________


rjjj is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error 017: undefined symbol,fatal error 107: too many error messages on one line Slicebook Scripting Help 11 04/05/2014 08:30 PM
An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds.... rati555 Scripting Help 1 14/09/2012 07:45 PM
Registered plate stock error 'error 076: syntax error in the expression, or invalid function call' Deal-or-die Scripting Help 2 25/06/2012 03:12 PM
Error message: : error 030: compound statement not closed at the end of file (started at line 503) David5290 Scripting Help 5 13/04/2012 03:50 AM
I get tagmismatch error, But i cant find any error error Swiftz Help Archive 1 16/04/2011 04:31 AM


All times are GMT. The time now is 03:21 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.