Code:
insert_report(id, value)
{
switch(value)
{
case 1: reason = "Skywalking"
case 2: reason = "Reapeted TK/TD"
case 3: reason = "Spawnkilling"
case 4: reason = "Wallhack"
case 5: reason = "Aimbot"
case 6: reason = "Speedhack"
case 7: reason = "Bad language"
case 8: reason = "Swearing"
}
Code:
insert_report(id, value)
{
switch(value)
{
case 1: format(reason, 31 , "%L" , LANG_SERVER , "REASON_1")
case 2: format(reason, 31 , "%L" , LANG_SERVER , "REASON_2")
case 3: format(reason, 31 , "%L" , LANG_SERVER , "REASON_3")
case 4: format(reason, 31 , "%L" , LANG_SERVER , "REASON_4")
case 5: format(reason, 31 , "%L" , LANG_SERVER , "REASON_5")
case 6: format(reason, 31 , "%L" , LANG_SERVER , "REASON_6")
case 7: format(reason, 31 , "%L" , LANG_SERVER , "REASON_7")
case 8: format(reason, 31 , "%L" , LANG_SERVER , "REASON_8")
}
strings aren't set with the = sign. Plus you want to keep static with the reasons in the lang file.