View Single Post
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 08-07-2006 , 09:26   Re: Report Abusive Players
Reply With Quote #5

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"     }

Should be
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.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos