mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 10:28:34 +00:00
19 lines
244 B
SourcePawn
19 lines
244 B
SourcePawn
|
|
#pragma newdecls required
|
|
|
|
enum MyType:{};
|
|
|
|
native void Print(MyType value);
|
|
native void PrintF(float value);
|
|
|
|
public void main()
|
|
{
|
|
int val = 2;
|
|
MyType otherVal = MyType:val;
|
|
|
|
float value2 = Float:val;
|
|
|
|
Print(otherVal);
|
|
PrintF(value2);
|
|
}
|