AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Solved [L4D2] KeyValues::GetInt crash server (https://forums.alliedmods.net/showthread.php?t=336398)

sorallll 02-17-2022 04:21

[L4D2] KeyValues::GetInt crash server
 
2 Attachment(s)
Recently when I try to use KeyValues::GetInt to get some data, the server keeps crashing, can anyone help me find out why

Here is the crash analysis, it tells me that I am using the wrong game data

Silvers 02-17-2022 04:42

Re: [L4D2] KeyValues::GetInt crash server
 
You could just use GetString() this is what I do for all my stuff. Info Editor for example does this and returns ints/floats etc as strings. Looks like the way you're calling is all wrong. Whats with the extra 0 at the end.

sorallll 02-17-2022 04:43

Re: [L4D2] KeyValues::GetInt crash server
 
Quote:

Originally Posted by Silvers (Post 2771688)
You could just use GetString() this is what I do for all my stuff. Info Editor for example does this and returns ints/floats etc as strings. Looks like the way you're calling is all wrong. Whats with the extra 0 at the end.

0 is the default value

sorallll 02-17-2022 05:00

Re: [L4D2] KeyValues::GetInt crash server
 
2 Attachment(s)
Now the data can be read normally


All times are GMT -4. The time now is 04:50.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.