BigETI

Some weird server crash issue.

Jul 8th, 2012
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.90 KB | None | 0 0
  1. [19:22:54] [debug] Server crashed while executing BF3.amx
  2. [19:22:54] [debug] AMX backtrace:
  3. [19:22:54] [debug] #0 native strcmp () [00406540] from samp-server.exe
  4. [19:22:54] [debug] #1 000444a8 in public OnPlayerText () from BF3.amx
  5. [19:22:54] [debug] System backtrace:
  6. [19:22:55] [debug] #0 004061e4 in ?? () from D:\Program Files\Rockstar Games\GTA San Andreas\03e Server\samp-server.exe
  7.  
  8. // The snippet:
  9. if(!strcmp(ReturnPVarString(playerid, "ChatText"), text, true)) GivePVarInt(playerid, "CountSpam", 1);
  10.  
  11. // Stocks:
  12. stock ReturnPVarString(playerid, varname[])
  13. {
  14.     new pvstr[512];
  15.     GetPVarString(playerid, varname, pvstr, sizeof(pvstr));
  16.     return pvstr;
  17. }
  18.  
  19. stock GivePVarInt(playerid, varname[], int_value) SetPVarInt(playerid, varname, GetPVarInt(playerid, varname)+int_value);
  20.  
  21. //
  22. Happens if the following string "nösklnagöksagnkö" matches.
  23. Tests in OnGameModeInit shows that it doesn't...
Advertisement
Add Comment
Please, Sign In to add comment