Pawno freezes upon compile - Miki - 2020-11-11
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.
RE: Pawno freezes upon compile - BoNNe - 2020-11-12
just add #pragma warning disable 239
RE: Pawno freezes upon compile - BigETI - 2020-11-12
No, const correct your code.
https://github.com/pawn-lang/compiler/wiki/Const-Correctness
RE: Pawno freezes upon compile - Miki - 2020-11-13
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?
RE: Pawno freezes upon compile - Pinch - 2020-11-13
It's const corrected...
RE: Pawno freezes upon compile - BigETI - 2020-11-13
(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.
RE: Pawno freezes upon compile - Miki - 2020-11-13
Alright, thanks.
|