Pomoc oko ackslimit

Započeo Luka_Deen, Februar 20, 2019, 09:37:53 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): [21:31:57] [warning] client exceeded 'ackslimit' 127.0.0.1: Limit: 3000/sec
Dio skripte: [ pawn ]neznam jel u skripti[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]napravio sam samo da pise u textdraw-u ono ime igraca kao npr Luka_Deen to sam napravio i poslje toga mi crasha server [ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike

U server.cfg dodaj ovo na dnu
ackslimit 6000
Ako opet bude stavi na 9000

opet isto nece evo sta sam sve napravio u skripti : bilo je new Text:ImeTD[MAX_PLAYERS] pa sam promjenio u ovo jel mi je izbacilo error
new Text:ImeTD;
u ongamemodeinit sam stavio ovo :
for(new i = 0; i < MAX_PLAYERS; i++)
{
    ImeTD = TextDrawCreate(294.700256, 413.583404, "John_Cappone");
   TextDrawLetterSize(ImeTD, 0.358638, 1.156666);
   TextDrawAlignment(ImeTD, 1);
   TextDrawColor(ImeTD, -1);
   TextDrawSetShadow(ImeTD, 0);
   TextDrawSetOutline(ImeTD, 0);
   TextDrawBackgroundColor(ImeTD, 51);
   TextDrawFont(ImeTD, 1);
   TextDrawSetProportional(ImeTD, 1);

}
onda u onplayerspawn ovo :
TextDrawShowForPlayer(playerid, ImeTD);
i u onplayerupdate ovo :
for(new d=0; d<MAX_PLAYERS; d++)
   {
       new imeigraca[MAX_PLAYER_NAME];
       new string[50];
       GetPlayerName(playerid, imeigraca, sizeof(imeigraca));
       format(string, sizeof(string),"%s",imeigraca);
        TextDrawSetString(ImeTD, string);
    }
sad dalje nezz jel sam nesto s**** ili sta
Poslednja Izmena: Februar 20, 2019, 10:44:27 PRE PODNE od Luka_Deen

PlayerTD treba imetd ds bude a ne global i kaj loopujes global td hahahah

[pawn]new PlayerText:ImeTD[MAX_PLAYERS];[/pawn]
I naravno pretvori global u PlayerTD

Citat: just_Purda poslato Februar 20, 2019, 10:48:55 PRE PODNE
[pawn]new PlayerText:ImeTD[MAX_PLAYERS];[/pawn]
I naravno pretvori global u PlayerTD
Nije magija puf pretvori se nego i kreiranje treba ne samo to i sam znaš

http://balkan-samp.com/forum/index.php?topic=96928.0
ja sam uzeo "tutorial" odavde od Dzune i probao sam pretvorio sam u player td i onda mi izbaci ovo :
jbg znam da sam noob zesci :D ali pocetnik sam tek u ovome tako da neznam bas oko toga radit
(30034) : error 017: undefined symbol "playerid"
(30035) : error 017: undefined symbol "playerid"
(30036) : error 017: undefined symbol "playerid"
(30037) : error 017: undefined symbol "playerid"
(30038) : error 017: undefined symbol "playerid"
(30039) : error 017: undefined symbol "playerid"
(30040) : error 017: undefined symbol "playerid"
(30041) : error 017: undefined symbol "playerid"
(30042) : error 017: undefined symbol "playerid"
(30919) : warning 213: tag mismatch
(35442) : warning 213: tag mismatch

Citat: {Makenzi} poslato Februar 20, 2019, 10:55:02 PRE PODNE
Nije magija puf pretvori se nego i kreiranje treba ne samo to i sam znaš
Ja ga pretvorim :D
[pawn]   ImeTD[ playerid ] = CreatePlayerTextDraw(playerid, 294.700256, 413.583404, "John_Cappone");
   PlayerTextDrawLetterSize(playerid, ImeTD[ playerid ], 0.358638, 1.156666);
     PlayerTextDrawAlignment(playerid, ImeTD[ playerid ], 1);
      PlayerTextDrawColor(playerid, ImeTD[ playerid ], -1);
      PlayerTextDrawSetShadow(playerid, ImeTD[ playerid ], 0);
      PlayerTextDrawSetOutline(playerid, ImeTD[ playerid ], 0);
      PlayerTextDrawBackgroundColor(playerid, ImeTD[ playerid ], 51);
      PlayerTextDrawFont(playerid, ImeTD[ playerid ], 1);
      PlayerTextDrawSetProportional(playerid, ImeTD[ playerid ], 1);[/pawn]

Citat: Luka_Deen poslato Februar 20, 2019, 11:00:04 PRE PODNE
http://balkan-samp.com/forum/index.php?topic=96928.0
ja sam uzeo "tutorial" odavde od Dzune i probao sam pretvorio sam u player td i onda mi izbaci ovo :
jbg znam da sam noob zesci :D ali pocetnik sam tek u ovome tako da neznam bas oko toga radit
(30034) : error 017: undefined symbol "playerid"
(30035) : error 017: undefined symbol "playerid"
(30036) : error 017: undefined symbol "playerid"
(30037) : error 017: undefined symbol "playerid"
(30038) : error 017: undefined symbol "playerid"
(30039) : error 017: undefined symbol "playerid"
(30040) : error 017: undefined symbol "playerid"
(30041) : error 017: undefined symbol "playerid"
(30042) : error 017: undefined symbol "playerid"
(30919) : warning 213: tag mismatch
(35442) : warning 213: tag mismatch
Pa PlayerTD ne ide u "OnGameModeInit" ...

Ma jbt nezz di da to postavljam nek mi neko napise pa cu napravit,ja sam samo napravio kako je pisalo u tome "tut" sve radi ig ali izabacuje te sugave warninge

[pawn]stock CreatePlayerTextDraws( playerid )
{
   ImeTD[ playerid ] = CreatePlayerTextDraw(playerid, 294.700256, 413.583404, "John_Cappone");
   PlayerTextDrawLetterSize(playerid, ImeTD[ playerid ], 0.358638, 1.156666);
     PlayerTextDrawAlignment(playerid, ImeTD[ playerid ], 1);
      PlayerTextDrawColor(playerid, ImeTD[ playerid ], -1);
      PlayerTextDrawSetShadow(playerid, ImeTD[ playerid ], 0);
      PlayerTextDrawSetOutline(playerid, ImeTD[ playerid ], 0);
      PlayerTextDrawBackgroundColor(playerid, ImeTD[ playerid ], 51);
      PlayerTextDrawFont(playerid, ImeTD[ playerid ], 1);
      PlayerTextDrawSetProportional(playerid, ImeTD[ playerid ], 1);
}
[/pawn]
onda u OnPlayerSpawn stavis:
[pawn]CreatePlayerTextDraws( playerid );[/pawn]
ako zelis da se pojave na spawnu,a ako zelis na connect, onda ubacis u "OnPlayerConnect"

sad je problem ovo kako da maknem? : (35442) : warning 213: tag mismatch
for(new d=0; d<MAX_PLAYERS; d++)
   {
       new imeigraca[MAX_PLAYER_NAME];
       new string[50];
       GetPlayerName(playerid, imeigraca, sizeof(imeigraca));
       format(string, sizeof(string),"%s",imeigraca);
        TextDrawSetString(ImeTD[d], string);  //35442 linija
    }

Citat: Luka_Deen poslato Februar 20, 2019, 11:45:37 PRE PODNE
sad je problem ovo kako da maknem? : (35442) : warning 213: tag mismatch
for(new d=0; d<MAX_PLAYERS; d++)
   {
       new imeigraca[MAX_PLAYER_NAME];
       new string[50];
       GetPlayerName(playerid, imeigraca, sizeof(imeigraca));
       format(string, sizeof(string),"%s",imeigraca);
        TextDrawSetString(ImeTD[d], string);  //35442 linija
    }
Promjenis u PlayerTextDrawSetString i dodas u playerid prije "ImeTD" i unutar njega, ne znam kako drugacije da se izrazim