Help gamemode unknown
#1

Hello, when I start the windows version of the server shows up well. But when I try to linux I do not show the version of the problem?

https://i.imgur.com/A7nFT8l.jpg

https://pastebin.com/8KBA7b3A
Reply
#2

Does it set the game mode text in OnGameModeInit? There is a run time error in this callback and breaks the code execution.

It is likely related to vehicles as the upper bound is 2000 (MAX_VEHICLES) and the invalid value is 65535 (INVALID_VEHICLE_ID).
Код:
[debug] #0 000570fc in ?? (0, 1143219782, -1007058944, 1098978427, 1043140182, 0, 0, 900, 11, 0) from sancarson.amx

(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay,...)
Even if it is not compiled with -d3 flag, it is easy to spot the details. The first is modelid which is 0 (valid are between 400 and 611) and the vehicle creation functions returns INVALID_VEHICLE_ID in this case.

Do you load vehicles from a database/files?

Debug info: https://github.com/Zeex/samp-plugin-...ith-debug-info
Compile your script again, upload and start the server. Crashdetect plugin can print lines now and names of functions.
Reply
#3

Quote:
Originally Posted by Calisthenics
Посмотреть сообщение
Does it set the game mode text in OnGameModeInit? There is a run time error in this callback and breaks the code execution.

It is likely related to vehicles as the upper bound is 2000 (MAX_VEHICLES) and the invalid value is 65535 (INVALID_VEHICLE_ID).
Код:
[debug] #0 000570fc in ?? (0, 1143219782, -1007058944, 1098978427, 1043140182, 0, 0, 900, 11, 0) from sancarson.amx

(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay,...)
Even if it is not compiled with -d3 flag, it is easy to spot the details. The first is modelid which is 0 (valid are between 400 and 611) and the vehicle creation functions returns INVALID_VEHICLE_ID in this case.

Do you load vehicles from a database/files?

Debug info: https://github.com/Zeex/samp-plugin-...ith-debug-info
Compile your script again, upload and start the server. Crashdetect plugin can print lines now and names of functions.
I have a pledge for me - after updating to d3, I get an error

C:\Users\Tautvydas\Documents\SanCarson.lt\pawno\in clude\YSI\internal\..\internal\y_natives.inc(65) : fatal error 100: cannot read from file: "y_globaltags"
Reply
#4

What version of YSI do you use and can you show the order of your includes?
Reply
#5

Quote:
Originally Posted by Calisthenics
Посмотреть сообщение
Does it set the game mode text in OnGameModeInit? There is a run time error in this callback and breaks the code execution.

It is likely related to vehicles as the upper bound is 2000 (MAX_VEHICLES) and the invalid value is 65535 (INVALID_VEHICLE_ID).
Код:
[debug] #0 000570fc in ?? (0, 1143219782, -1007058944, 1098978427, 1043140182, 0, 0, 900, 11, 0) from sancarson.amx

(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay,...)
Even if it is not compiled with -d3 flag, it is easy to spot the details. The first is modelid which is 0 (valid are between 400 and 611) and the vehicle creation functions returns INVALID_VEHICLE_ID in this case.

Do you load vehicles from a database/files?

Debug info: https://github.com/Zeex/samp-plugin-...ith-debug-info
Compile your script again, upload and start the server. Crashdetect plugin can print lines now and names of functions.
Quote:
Originally Posted by Calisthenics
Посмотреть сообщение
What version of YSI do you use and can you show the order of your includes?
And with me, cfg -z -d3 cfg works, and when some of the records -d3 do not work on that problem?
Reply
#6

If you use the community compiler, enable compatibility mode by passing -Z in pawn.cfg along with -d3

Always include YSI libraries after a_samp.inc (y_hooks is exception) and use back slashes <YSI\y_ini> is OK but <YSI/y_ini> is not.
Reply
#7

Quote:
Originally Posted by Calisthenics
Посмотреть сообщение
If you use the community compiler, enable compatibility mode by passing -Z in pawn.cfg along with -d3

Always include YSI libraries after a_samp.inc (y_hooks is exception) and use back slashes <YSI\y_ini> is OK but <YSI/y_ini> is not.
Thank you for the error was not pwn o transport include
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)