Small help
#1

PHP код:
num ServerInfo {
    
Ping,
    
Fps,
    
Float:Packetloss,
    
    
SV_NAME[50] = "asdsadsad",
    
GM_NAME[25] = "asdsadsad",
    
GM_MAPN[15] = "asdsadasd",
    
GM_SITE[20] = "asdsadasd",
    
GM_LANG[15] = "asdsadasd"
}
new 
sData[ServerInfo]; 
Error: error 008: must be a constant expression; assumed zero

At lines with stringsize
Reply
#2

Enumerators are not arrays and you cannot assign a default value to them.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Enumerators are not arrays and you cannot assign a default value to them.
How i can fix it so ?
Reply
#4

replace with this:
PHP код:
num ServerInfo 
    
Ping
    
Fps
    
Float:Packetloss

new 
sData[ServerInfo];  
SV_NAME[50] = "asdsadsad"
GM_NAME[25] = "asdsadsad"
GM_MAPN[15] = "asdsadasd"
GM_SITE[20] = "asdsadasd"
GM_LANG[15] = "asdsadasd" 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)