முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

GetSVarInt

எச்சரிக்கை

செயல்பாடு என்பது SA-MP 0.3.7 R2 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Gets an integer server variable's value.

NameDescription
const svar[]The name of the server variable (case-insensitive).
Assigned in SetSVarInt.

Returns​

The integer value of the specified server variable.

It will still return 0 if the variable is not set.

Examples​

// set "Version"
SetSVarInt("Version", 37);

// will print version that server has
printf("Version: %d", GetSVarInt("Version"));