While it'd be a nice to see what line "KillerName" is on as well as indications of what lines each of the ones you've shown are, I've gathered a bit of what the problem is. For SelectRandomPlayer(), your (dual) issue is that you're creating a variable called random and using the function Random, but the fact is the function is called random and you should name the variable Random. By using Random, you're calling an unnamed function, and by trying to create a variable random, you're attempting to use an existing function as a new variable -- that's a no-no.
Your next issue is in regards to the variable randomplayer. Unfortunately, randomplayer is nested within the BonusPlayer() function and ergo can't be used outside of it; you'll need to move randomplayer out of the function allowing it to be 'globally' called upon.
Your next problem, occurring in both OnPlayerDeath and BonusPlayer(), revolves around the fact that you have not properly initialized a few strings (initialization is done either with empty brackets (variableName[]) if you're defining on the same line, or brackets with the length of the variable if you're going to define on a later name (variableName[128], for example)). The strings you haven't initialized are pname (in both OnPlayerDeath and BonusPlayer()), randomplayer (BonusPlayer()) and kname (in OnPlayerDeath).
Also, on the line where you use format in OnPlayerDeath, you're missing a comma between the third and fourth parameter:
Before:
Код:
format(str1, sizeof(str1),"* %s (%d) Has Killed Bonus Player %s (%d)."kname, killerid, pname, playerid);
After:
Код:
format(str1,sizeof(str1),"* %s (%d) Has Killed Bonus Player %s (%d).", kname, killerid, pname, playerid);
I didn't provide any code that would completely give this away, but hopefully I've pointed you in the right direction (rep if I did, ask questions if not). If you need any more help, of course, reply