Quote:
Originally Posted by Str4x3D1x
Wait, but what does
sz stands for ?
Code:
enum Knife
{
Thunder Knife[ 45 ],
2
}
What is [45] and what is sz ?
Also what do i replace szMenu with ?
I didn't really understand that :s
|
Code:
enum _:eblabla
{
szKnifeName[ 45 ],
iKnifeLevel
}
45 is the size of knives name, sz is nothing just name i used for enums
but szKnifeName
you use in menu to see knives names:
Code:
formatex( szMenu, charsmax( szMenu ), "\w%s \d[\rLOCKED \d- \rREQUIRES LEVEL %d\d]",
szblabla[ Index ] [ szKnifeName ], szblabla[ Index ] [ PlayerLevel ] );
read here:
https://forums.alliedmods.net/showthread.php?t=140103
about enum