• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Pawno freezes upon compile
#1
The short story is i saved this gamemode i started writing from scratch and i wanted to check it out again and maybe script a little more, i set everything up, latest server files, latest plugins and includes but for some reason (i believe its compatibility or something because it works properly on win7) it freezes when i hit compile. I tried other gamemodes and for some reason it works for them. Now i also tried zeexs latest compiler and it gives me bunch of warnings which i'll list below, i tried #pragma compat 1 but that doesn't seem to work. The gamemode compiles to an amx but its corrupted and won't run.
Code:
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(443) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(700) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(700) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(700) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(784) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(784) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(784) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(790) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(790) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(790) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(795) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(809) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(809) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(809) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(816) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(816) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(816) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(823) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(823) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(823) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(831) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(831) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(831) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(831) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(837) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(837) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(837) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(837) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(843) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(843) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(843) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(843) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(997) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(997) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(997) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1003) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1003) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1003) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1085) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1085) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1085) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1093) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1093) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1093) : warning 239: literal array/string passed to a non-const parameter
Pawn compiler 3.10.10 Copyright (c) 1997-2006, ITB CompuPhase


45 Warnings.
EDIT:
Found the solution by googling the warning and a thread from this forum came up.
Away
  Reply
#2
just add #pragma warning disable 239
My discord:?BoNNe#3552

  Reply
#3
No, const correct your code.



https://github.com/pawn-lang/compiler/wi...orrectness
[Image: github-samp-icon.png]
  Reply
#4
I replaced the includes from samp package with the ones i downloaded and it fixed it i get no more warnings. Is the problem fixed or just hidden?
Away
  Reply
#5
It's const corrected...
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply
#6
(2020-11-13, 08:13 AM)Miki Wrote: I replaced the includes from samp package with the ones i downloaded and it fixed it i get no more warnings. Is the problem fixed or just hidden?



That fixes your issue.
[Image: github-samp-icon.png]
  Reply
#7
Alright, thanks.
Away
  Reply


Forum Jump: