AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What's "sz"? (https://forums.alliedmods.net/showthread.php?t=76212)

hleV 08-20-2008 13:19

What's "sz"?
 
I was wondering what does "sz" mean? Like:
PHP Code:

register_clcmd("amx_test""cmdTest"

PHP Code:

public cmdTest(id)
{
        new 
szArg[32]
        
read_argv(1szArg31)



zwfgdlc 08-20-2008 13:26

Re: What's "sz"?
 
sz=string,i=int,f=float,v=Vector.

hleV 08-20-2008 13:31

Re: What's "sz"?
 
Then why it's sz and not s?

YamiKaitou 08-20-2008 13:39

Re: What's "sz"?
 
Moved to Scripting Help as it is a Scripting question

ConnorMcLeod 08-20-2008 13:43

Re: What's "sz"?
 
Think it means that it's a zero terminated string.

Arkshine 08-20-2008 13:43

Re: What's "sz"?
 
All string are null-terminated. Since the string is terminated by zero, 'z' is used. Personaly I prefer just s_ .

See Hungrarian notation.

I don't use much this notation style. Just some to help me to see fastly the variable type.

hleV 08-20-2008 13:49

Re: What's "sz"?
 
Thanks. ^^

Lee 08-20-2008 19:12

Re: What's "sz"?
 
Modern IDEs obsolete Hungarian notation. Unfortunately, no such thing exists for Pawn as far as I know. I wonder to what degree language services would allow you to use Visual Studio.

Of course, there's not a huge need for Hungarian notation given the lack of types.


All times are GMT -4. The time now is 03:06.

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