AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved variables' prefixes (https://forums.alliedmods.net/showthread.php?t=330716)

kww 02-17-2021 14:14

variables' prefixes
 
Hi! I often see variables with prefixes like "g", "i", "sz", "f" and etc. What do they mean?

klippy 02-17-2021 14:23

Re: variables' prefixes
 
It's the Hungarian notation, which is a variable naming convention. It's only for semantics - they don't affect your program.

OciXCrom 02-17-2021 15:11

Re: variables' prefixes
 
Global, integer, string, float.

kww 02-17-2021 16:27

Re: variables' prefixes
 
Quote:

Originally Posted by KliPPy (Post 2737304)
It's the Hungarian notation, which is a variable naming convention. It's only for semantics - they don't affect your program.

Okay thanks

Quote:

Originally Posted by OciXCrom (Post 2737309)
Global, integer, string, float.

Thanks for explanation

fysiks 02-18-2021 00:33

Re: variables' prefixes
 
FYI, "sz" comes from "string terminated by zero".

redivcram 02-18-2021 20:43

Re: variables' prefixes
 
https://en.wikipedia.org/wiki/Hungarian_notation


All times are GMT -4. The time now is 17:36.

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