SA-MP Forums Archive
Warning 'messageslimit' al entrar en un pickup - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Warning 'messageslimit' al entrar en un pickup (/showthread.php?tid=608582)



Warning 'messageslimit' al entrar en un pickup - Z3x0 - 03.06.2016

Pues Gracias Principalmente por fijarte en mi tema y pues quisiera que me ayudaras ya que estoy desesperadisimo con este warning el cual aparece en la consola

Код:
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
[warning] client exceeded 'messageslimit' *.*.213.227:51634 (535) Limit: 500/sec
UNICAMENTE APARECE CUANDO ENTRO AL PICKUP O SIMPLEMENTE ESTANDO CERCA DE EL Y USAR UN COMANDO O SIN USARLO ME APARECE ESE PUTO WARNING "PERDON POR LAS PALABRAS" Bueno Chicos Les Dejo Mi Codigo Aqui Abajo

PHP код:
new Tele[2]; //Arriba de Todo El GM
if(pickupid == Tele[0])
{
 new 
str[128];
SetPlayerPos(playerid2308.7476,-15.0053,26.7422);
PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
 }
if(
pickupid == Tele[1])
{
new 
str[128];
SetPlayerPos(playerid2319.3230,3.2437,26.4844);
PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
//Esto Lo Coloque en OnPlayerPickUpPickup(playerid, pickupid)
PickupTP[0] = CreatePickup(1960612302.7576,-15.9981,26.4844, -1);
PickupTP[1] = CreatePickup(1960612315.4619,-1.0122,26.7422, -1);// Esto En OnGameModeInit 
TAMBIEN INTENTE PONIENDOLE RETURNS Y DEMAS Y NADA ACTUALIZE MIS PLUGINS Y NADA


Respuesta: Warning 'messageslimit' al entrar en un pickup - mcreed - 03.06.2016

Intenta asi:
PHP код:

if(pickupid == PickupTP[0])
{
 new 
str[128];
SetPlayerPos(playerid2308.7476,-15.0053,26.7422);
PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
 }
if(
pickupid == PickupTP[1])
{
new 
str[128];
SetPlayerPos(playerid2319.3230,3.2437,26.4844);
PlayerPlaySound(playerid,1139,0.0,0.0,0.0);




Re: Warning 'messageslimit' al entrar en un pickup - Z3x0 - 03.06.2016

Suigue Igual


Respuesta: Warning 'messageslimit' al entrar en un pickup - mcreed - 03.06.2016

Revisa otro codigo que pueda estar relacionado o cerca al codigo del pickup, ya que probe el codigo y no me sale ningun error.

Creo que este warning se produce por bucles infinitos ( que incluso te saca del servidor ), comprueba si en el mismo onplayerpickup hay algun pickup que no tenga valor, como el que tenias que ponias Tele, y era un valor nulo.

Aca te dejo un poco arreglado el codigo:
PHP код:
// Al Principio de la GM
new PickupTP[2];
// En ongamemodeinit o onfilterscriptinit
    
PickupTP[0] = CreatePickup(1960612302.7576,-15.9981,26.4844, -1);
    
PickupTP[1] = CreatePickup(1960612315.4619,-1.0122,26.7422, -1);
// En OnPlayerPickUp
    
if(pickupid == PickupTP[0])
    {
        
SetPlayerPos(playerid2308.7476,-15.0053,26.7422);
        
PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
    }
    if(
pickupid == PickupTP[1])
    {
        
SetPlayerPos(playerid2319.3230,3.2437,26.4844);
        
PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
    }