SA-MP Forums Archive
Anti repeat Crash | Why? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Anti repeat Crash | Why? (/showthread.php?tid=74143)



Anti repeat Crash | Why? - -Davee- - 20.04.2009

Hey I use this function:

pawn Код:
static stext[MAX_PLAYERS][128];
    if(!strfind(text, stext[playerid], true))
  return SendClientMessage(playerid, 0xFF0000FF, "Don't Repeat yourself!"), false;
    format(stext[playerid], sizeof stext[], text);
But I type about 30 Hungaryan characters on chat, (eg: бőъűбőъ or lot of @@@@@@@) It will crash the server.
Only windows, on linux works fine...
( I use strfind for noob like 1. hey 2. heyy )
Any idea? Why crashed the server?